mirror of
https://github.com/golang/go
synced 2024-11-19 12:24:42 -07:00
82 lines
1.1 KiB
Plaintext
82 lines
1.1 KiB
Plaintext
|
-- foldingRange-0 --
|
||
|
package folding //@fold("package")
|
||
|
|
||
|
import (<>)
|
||
|
|
||
|
import (<>)
|
||
|
|
||
|
// badBar is a function.
|
||
|
func badBar(<>) string {<>}
|
||
|
|
||
|
-- foldingRange-1 --
|
||
|
package folding //@fold("package")
|
||
|
|
||
|
import ( "fmt"
|
||
|
_ "log"
|
||
|
)
|
||
|
|
||
|
import (
|
||
|
_ "os" )
|
||
|
|
||
|
// badBar is a function.
|
||
|
func badBar() string { x := true
|
||
|
if x {<>} else {<>}
|
||
|
return
|
||
|
}
|
||
|
|
||
|
-- foldingRange-2 --
|
||
|
package folding //@fold("package")
|
||
|
|
||
|
import ( "fmt"
|
||
|
_ "log"
|
||
|
)
|
||
|
|
||
|
import (
|
||
|
_ "os" )
|
||
|
|
||
|
// badBar is a function.
|
||
|
func badBar() string { x := true
|
||
|
if x {
|
||
|
// This is the only foldable thing in this file when lineFoldingOnly
|
||
|
fmt.Println(<>)
|
||
|
} else {
|
||
|
fmt.Println(<>) }
|
||
|
return
|
||
|
}
|
||
|
|
||
|
-- foldingRange-imports-0 --
|
||
|
package folding //@fold("package")
|
||
|
|
||
|
import (<>)
|
||
|
|
||
|
import (<>)
|
||
|
|
||
|
// badBar is a function.
|
||
|
func badBar() string { x := true
|
||
|
if x {
|
||
|
// This is the only foldable thing in this file when lineFoldingOnly
|
||
|
fmt.Println("true")
|
||
|
} else {
|
||
|
fmt.Println("false") }
|
||
|
return
|
||
|
}
|
||
|
|
||
|
-- foldingRange-lineFolding-0 --
|
||
|
package folding //@fold("package")
|
||
|
|
||
|
import ( "fmt"
|
||
|
_ "log"
|
||
|
)
|
||
|
|
||
|
import (
|
||
|
_ "os" )
|
||
|
|
||
|
// badBar is a function.
|
||
|
func badBar() string { x := true
|
||
|
if x {<>
|
||
|
} else {
|
||
|
fmt.Println("false") }
|
||
|
return
|
||
|
}
|
||
|
|