Skip to content

unsupported-binary-write

Detect values encoding/binary cannot serialize.

Updated View as Markdown

Default severity: error

Reports architecture-sized integers and other variable-size values passed to binary.Write.

Bad

binary.Write(writer, binary.LittleEndian, value) // reported when value is int

Good

binary.Write(writer, binary.LittleEndian, uint32(value))
Navigation

Type to search…

↑↓ navigate↵ selectEsc close