An errors package built on top of existing battle tested packages with structured JSON serialization support.
Go v1.10+ since strings.Builder
API is used for generating the output for Error()
method.
- A very primitive support for monads
- Maintains backwards compatibility with Dave Cheney's errors package.
- Additional functions for wrapping errors inspired by Upspin's error package.
- Additional methods for error inspection.
- JSON serialization support.
Unless otherwise noted, the errors source files are distributed under the Apache Version 2.0 license found in the LICENSE file.