Go: Error handling tutorial
This series of articles gives an introduction to error handling in Go.
Go uses return values to indicate errors.
Create a custom error
How to handle an error and how to create custom error types.
Go uses panic for exceptional errors.
Recover from a panic
How to recover from a panic and update the return value.
A stack trace is a list of active method calls at a certain point in time during the execution of a program.