logoalt Hacker News

iaaan • yesterday at 7:24 PM • 0 replies • view on HN

It is trivial to ignore an error in Go if you know your use case cannot result in one. But at the end of the day, json.Marshal takes an `any` as a parameter, so it must return an error.