gopkg.in/golangci/golangci-lint.v1@v1.10.1/test/testdata/interfacer.go (about)

     1  // args: -Einterfacer
     2  package testdata
     3  
     4  import "io"
     5  
     6  func InterfacerCheck(f io.ReadCloser) { // ERROR "`f` can be `io.Closer`"
     7  	f.Close()
     8  }