errbuilder-go
A Go builder that attaches project-defined codes and details to errors.
- Status
- maintained
- Built with
- Go
System
My errbuilder-go library builds errors in Go. Its module path is github.com/ZanzyTHEbar/errbuilder-go. Its Builder constructs errors with a message, gRPC-inspired project codes, and structured details. ErrMap collects errors across complex or deferred flows. Five builtin wrappers demonstrate common usage.
Constraints
- Use across Go projects
- Code meanings must not vary by call site
- Deferred and multi-error flows must fit the same shape
Evidence
- ZanzyTHEbar/errbuilder-go: error builder for Go with gRPC-inspired codes.
Related systems
faults-go
Application faults with stable codes across process boundaries.
Goassert-lib
Go assertions with logging by default and an explicit crash-on-failure option.
Go