github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/linedirective/hello.go (about) 1 // Refers a existent, but non-go file with line directive 2 //line hello.tmpl:1 3 package main 4 5 import ( 6 "golang.org/x/tools/go/analysis" 7 ) 8 9 func _() { 10 var x int 11 _ = x 12 x = 0 //x 13 } 14 15 func main() { 16 a() 17 b() 18 wsl() 19 } 20 21 func a() { 22 fmt.Println("foo") 23 } 24 25 func b() { 26 fmt.Println("foo") 27 } 28 29 func c(){ 30 _ = analysis.Analyzer{} 31 } 32 33 func wsl() bool { 34 35 return true 36 } 37 38 func notFormatted() { 39 } 40 41 // langauge