github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/unused/testdata/src/main/main.go (about)

     1  package main
     2  
     3  func Fn1() {}
     4  func Fn2() {} // MATCH /Fn2 is unused/
     5  
     6  const X = 1 // MATCH /X is unused/
     7  
     8  var Y = 2 // MATCH /Y is unused/
     9  
    10  type Z struct{} // MATCH /Z is unused/
    11  
    12  func main() {
    13  	Fn1()
    14  }