github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/unused/testdata/src/blank/blank.go (about) 1 package pkg 2 3 import _ "fmt" 4 5 type t1 struct{} // MATCH /t1 is unused/ 6 type t2 struct{} 7 type t3 struct{} 8 9 var _ = t2{} 10 11 func fn1() { // MATCH /fn1 is unused/ 12 _ = t1{} 13 var _ = t1{} 14 } 15 16 func fn2() { 17 _ = t3{} 18 } 19 20 func init() { 21 fn2() 22 } 23 24 func _() {} 25 26 type _ struct{}