.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / staticcheck / testdata / src / checkStdlibUsageSeeker / checkStdlibUsageSeeker.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/checkStdlibUsageSeeker/checkStdlibUsageSeeker.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/checkStdlibUsageSeeker/checkStdlibUsageSeeker.go
new file mode 100644 (file)
index 0000000..8ebd909
--- /dev/null
@@ -0,0 +1,12 @@
+package pkg
+
+import "io"
+
+func fn() {
+       const SeekStart = 0
+       var s io.Seeker
+       s.Seek(0, 0)
+       s.Seek(0, io.SeekStart)
+       s.Seek(io.SeekStart, 0) // want `the first argument of io\.Seeker is the offset`
+       s.Seek(SeekStart, 0)
+}