github.com/mvdan/interfacer@v0.0.0-20180901003855-c20040233aed/check/testdata/src/single/struct.go (about) 1 package single 2 3 type St struct{} 4 5 func (s *St) Close() {} 6 7 func (s *St) Basic(c Closer) { 8 c.Close() 9 } 10 11 func (s *St) BasicWrong(rc ReadCloser) { // WARN rc can be Closer 12 rc.Close() 13 }