gopkg.in/golangci/golangci-lint.v1@v1.10.1/test/testdata/deadcode.go (about) 1 // args: -Edeadcode 2 package testdata 3 4 var y int 5 6 var unused int // ERROR "`unused` is unused" 7 8 func f(x int) { 9 } 10 11 func g(x int) { // ERROR "`g` is unused" 12 } 13 14 func H(x int) { 15 } 16 17 func init() { 18 f(y) 19 } 20 21 var _ int