errors + stack staces.
Key features of k1LoW/errors are:
- Retain the stack traces once stacked as far as possible.
- Support for
errors.Join.
- Support for
- It is possible to output stack traces in structured data.
- It is possible to separate joined errors.
- Zero dependency
import (
// "errors"
"github.com/k1LoW/errors"
)https://go.dev/play/p/8zQvFThxI4O
- The behaviour of methods with the same name as the
errorspackage is the same. k1LoW/errorshasWithStack,StackTracesandErrorsfunctions.