Skip to content

invalid-utf8

Detect invalid UTF-8 arguments to strings functions.

Updated View as Markdown

Default severity: error

Reports invalid constant cutsets and character lists passed to selected strings functions.

Bad

strings.Trim(value, "\xff") // reported

Good

strings.Trim(value, "é")
Navigation

Type to search…

↑↓ navigate↵ selectEsc close