Pragmatic Error Handling in Go
Pragmatic Error Handling in Go
Beyond if err != nil - techniques that work.
Always Wrap
return fmt.Errorf("get order %s: %w", id, err)
Sentinels
var ErrNotFound = errors.New("not found")
HTTP Patter
younggao.hashnode.dev1 min read