github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/interfacer/testdata/files/unexported_byvalue.go (about)

     1  package foo
     2  
     3  type Stringer interface {
     4  	String() string
     5  }
     6  
     7  type st struct{}
     8  
     9  func (s st) String() string {
    10  	return "foo"
    11  }
    12  
    13  func Exported(s st) string { // WARN s can be Stringer
    14  	return s.String()
    15  }
    16  
    17  func unexported(s st) string {
    18  	return s.String()
    19  }