github.com/nozzle/golangci-lint@v1.49.0-nz3/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 "github.com/ryancurrah/gomodguard" 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 wsl() bool { 30 31 return true 32 } 33 34 func notFormatted() { 35 } 36 37 // langauge