github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/folding/bad.go.in (about) 1 package folding //@fold("package") 2 3 import ( "fmt" 4 _ "log" 5 ) 6 7 import ( 8 _ "os" ) 9 10 // badBar is a function. 11 func badBar() string { x := true 12 if x { 13 // This is the only foldable thing in this file when lineFoldingOnly 14 fmt.Println("true") 15 } else { 16 fmt.Println("false") } 17 return 18 }