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

     1  package pkg
     2  
     3  import "io"
     4  
     5  func fn() {
     6  	const SeekStart = 0
     7  	var s io.Seeker
     8  	s.Seek(0, 0)
     9  	s.Seek(0, io.SeekStart)
    10  	s.Seek(io.SeekStart, 0) // MATCH /the first argument of io.Seeker is the offset/
    11  	s.Seek(SeekStart, 0)
    12  }