Collections /

Error Handling in Go

Last updated Jul 18, 2018

Polyglot developer with an obsession for modularity

Error values in Go seem simple at first, but the interface driven approach makes it possible to express detailed information about failure, allowing errors to be handled much more gracefully than the naive approach (e.g. sprinkling fmt.Errorf or errors.New)

Dave Cheney's Posts on Errors in Go

Usually when teaching about Go and errors, I refer mentees to Dave Cheney's advice, as I have very little to add on top of it.

Bonus Links

Like this collection? Save it to read later.