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