In this chapter, the following recipes will be covered:
- Handling errors and the Error interface
- Using the pkg/errors package and wrapping errors
- Using the log package and understanding when to log errors
- Structured logging with the apex and logrus packages
- Logging with the context package
- Using package-level global variables
- Catching panics for long running processes