Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / staticcheck / testdata / src / checkStdlibUsageSeeker / checkStdlibUsageSeeker.go
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) // want `the first argument of io\.Seeker is the offset`
11         s.Seek(SeekStart, 0)
12 }