Errors

You can learn the basics of error handling in the Tour of Go: Errors.

Here's a great article about error handling: Working with Errors.

Source code: errors package on go.dev.

Examples: Errors, Custom errors on Go by Example.