Errors
5 lessons
- 01The Error InterfaceHow Go handles errors using the built-in error interface and nil checks.
- 02Custom ErrorsCreating custom error types by implementing the error interface on structs.
- 03The Errors PackageUsing the standard library's errors package for simple error creation.
- 04Panic and RecoverWhy you should avoid panic/recover for normal error handling and what to use instead.
- 05Errors CheatsheetA quick reference guide for Go error handling, custom errors, and wrapping.