Skip to content

non-pointer-unmarshal

Detect non-pointer decoding and unmarshalling destinations.

Updated View as Markdown

Default severity: error

JSON and XML decoding APIs require a pointer destination so they can populate the supplied value.

Bad

json.Unmarshal(data, value)

Good

json.Unmarshal(data, &value)
Navigation

Type to search…

↑↓ navigate↵ selectEsc close