File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 22
33` multierr ` allows combining one or more Go ` error ` s together.
44
5+ ## Features
6+
7+ - ** Idiomatic** :
8+ multierr follows best practices in Go, and keeps your code idiomatic.
9+ - It keeps the underlying error type hidden,
10+ allowing you to deal in ` error ` values exclusively.
11+ - It provides APIs to safely append into an error from a ` defer ` statement.
12+ - ** Performant** :
13+ multierr is optimized for performance:
14+ - It avoids allocations where possible.
15+ - It utilizes slice resizing semantics to optimize common cases
16+ like appending into the same error object from a loop.
17+ - ** Interoperable** :
18+ multierr interoperates with the Go standard library's error APIs seamlessly:
19+ - The ` errors.Is ` and ` errors.As ` functions * just work* .
20+ - ** Lightweight** :
21+ multierr comes with virtually no dependencies.
22+
523## Installation
624
7- go get -u go.uber.org/multierr
25+ ``` bash
26+ go get -u go.uber.org/multierr@latest
27+ ```
828
929## Status
1030
You can’t perform that action at this time.
0 commit comments