Go
Be aware about ignoring error in Go
So recently I met a issue which is the number of objects I got when parse XML is different with the actual response from the API.
Turns out it is different because of error when parsing content due to conflict of different types.
The code cause error:
_ = xml.Unmarshal(bodyBytes, &summaryIDsXml)
We definitely should catch or print the error
err =…