github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/staticcheck/testdata/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  }