GopherCon 2020: Jonathan Amsterdam - Working with Errors

21:24 8798 views 100% Published 2 years ago

Go 1.13 introduced support for working with wrapped errors, in the form of three new functions and a new formatting directive. But those small changes have big ramifications for how you return errors from your code, and how you act on errors from the code you call.

Jonathan's talk begins by defining what it means to wrap errors, and when you’d want to do so (and when not!). He'll then explain how the additions to the errors and fmt packages support wrapping. Jonathan will also address some features that didn't make it in, like stack traces and formatting. He will show how you can incorporate those features, and others like error codes, into your own error packages.



Watch on YouTube