News for hackers. Stuff that matters.
Re:Down the Golang Nil Rabbit Hole by tgv on Tuesday March 30, 2021 @03:02AM (#26631876)
#1 has improved a bit lately, but I did get some mileage out of making my own type which carries an optional HTTP status, a severity level, the core error and an optional payload; and it implements Error(). It allows for easy logging, and can be used to return to the http client with a variety of messages.

There are no comments on this comment yet.