Overview
Syllabus
Intro
Wrapping and the error chain
Error-wrapping support in Go 1.13
Two audiences for errors
A Config struct
Returning errors unadorned
User-facing function
Deciding with errors before 1.13
Annotating errors
Error wrapping
Wrapping errors in Go 1.13
Use errors. As instead of type assertions
Under the hood
Moving to Wrapped Errors
Wrapping Returned Errors
Did we go too far?
Errors and Codes
Stack trace example
Stack trace problems
We tried...
How we don't do it
Execution Traces With Wrap
Standard Formatting
Detailed Formatting
Formatting Removed
Detail Formatting with fmt. Formatter
References
Taught by
Gopher Academy