Skip to content

invalid-strconv-argument

Detect invalid constant arguments to strconv functions.

Updated View as Markdown

Default severity: error

The strconv parsing and formatting functions accept only documented number bases, bit sizes, and floating-point format characters. Invalid constant arguments always return errors or produce unusable results.

Bad

strconv.ParseInt(value, 1, 128)

Good

strconv.ParseInt(value, 10, 64)
Navigation

Type to search…

↑↓ navigate↵ selectEsc close