Go: Error handling tutorial

This series of articles gives an intro­duction to error handling in Go.

  1. Errors explained
    Go uses return values to indicate errors.
  2. Create a custom error
    How to handle an error and how to create custom error types.
  3. Panic explained
    Go uses panic for exceptional errors.
  4. Recover from a panic
    How to recover from a panic and update the return value.
  5. Stack traces
    A stack trace is a list of active method calls at a certain point in time during the execution of a program.