github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/interfacer.go (about)

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