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

     1  package pkg
     2  
     3  type I interface {
     4  	fn1()
     5  }
     6  
     7  type t struct{}
     8  
     9  func (t) fn1() {}
    10  func (t) fn2() {} // MATCH /fn2 is unused/
    11  
    12  func init() {
    13  	var _ I
    14  	var _ t
    15  }