2019-08-28 19:48:29 -06:00
|
|
|
package folding //@fold("package")
|
|
|
|
|
|
|
|
import (
|
2019-08-29 13:28:51 -06:00
|
|
|
"fmt"
|
2019-08-28 19:48:29 -06:00
|
|
|
_ "log"
|
|
|
|
)
|
|
|
|
|
|
|
|
import _ "os"
|
|
|
|
|
|
|
|
// bar is a function.
|
|
|
|
// With a multiline doc comment.
|
|
|
|
func bar() string {
|
2019-08-29 13:28:51 -06:00
|
|
|
switch {
|
|
|
|
case true:
|
|
|
|
if true {
|
|
|
|
fmt.Println("true")
|
2019-08-30 12:11:42 -06:00
|
|
|
} else {
|
|
|
|
fmt.Println("false")
|
2019-08-29 13:28:51 -06:00
|
|
|
}
|
|
|
|
case false:
|
|
|
|
fmt.Println("false")
|
|
|
|
default:
|
|
|
|
fmt.Println("default")
|
|
|
|
}
|
2019-08-30 12:11:42 -06:00
|
|
|
// This is a multiline comment
|
|
|
|
// that is not a doc comment.
|
2019-08-28 19:48:29 -06:00
|
|
|
return `
|
|
|
|
this string
|
|
|
|
is not indented`
|
|
|
|
}
|