Errors

Get the basics from the Tour of Go: Errors

Then read Working with Errors to understand error wrapping and handling patterns.

Source code: errors package

Examples: Errors, Custom errors