Skip to content

swapped-seek-arguments

Detect swapped io.Seeker.Seek arguments.

Updated View as Markdown

Default severity: warning

The byte offset is the first argument and the whence constant is the second.

Bad

seeker.Seek(io.SeekStart, 0)

Good

seeker.Seek(0, io.SeekStart)
Navigation

Type to search…

↑↓ navigate↵ selectEsc close