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

     1  package pkg
     2  
     3  type t1 struct{}
     4  type t2 struct{ t3 }
     5  type t3 struct{}
     6  
     7  func (t1) Foo() {}
     8  func (t3) Foo() {}
     9  func (t3) foo() {} // MATCH /foo is unused/
    10  
    11  func init() {
    12  	_ = t1{}
    13  	_ = t2{}
    14  }