Skip to content

Commit

Permalink
docs(readme): update
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Nov 3, 2021
1 parent 16f9ddb commit e7ec228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ if err != nil {
}
```

# Why
## Why
* Using `Wrap` is the most explicit way to do error wrapping
* Writing `fmt.Errorf("foo: %w", err)` is implicit, redundant and error-prone
* Parsing of `"foo: %w"` is slow, implicit and redundant
* The [pkg/errors](https://github.com/pkg/errors) and [xerrrors](https://pkg.go.dev/golang.org/x/xerrors) are not maintainted
* The [cockroachdb/errors](https://github.com/cockroachdb/errors) is too big
* The `errors` has no caller stack trace

# Don't need traces?
## Don't need traces?
Call `errors.DisableTrace` or use build flag `noerrtrace`.

0 comments on commit e7ec228

Please sign in to comment.