Closed dwbuiten closed 3 years ago
staticcheck should catch this? https://staticcheck.io/docs/checks#SA1013
I wasn't even aware that staticcheck existed, to be honest. Guess I don't keep up with the sheer number of linters and tools that exist for Go nowadays (not that I know how one would).
Kind of a pain to have this stuff spread over a whole bunch of different tools.
Will close this PR.
staticcheck is currently one of the best static analysis tools for Go. Glad I could introduce you to it.
Since the io.Seek constants are just integers, you can accidentally call io.Seek with its arguments in the wrong order, and the Go compiler will not complain.