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)Detect non-pointer decoding and unmarshalling destinations.
Default severity: error
JSON and XML decoding APIs require a pointer destination so they can populate the supplied value.
json.Unmarshal(data, value)json.Unmarshal(data, &value)