github.com/stackprune/errors
Package errors provides a modern, lightweight alternative to pkg/errors, capturing a single stack trace at error creation time and preserving it through all wraps. It avoids redundant stack traces while maintaining compatibility with Go 1.13+ errors.Is / errors.As / errors.Unwrap. The API includes `New`, `Wrap`, `Errorf`, `WithStack`, and `Join`, offering familiar ergonomics without the noise of `WithMessage` or similar. The *Error type also implements slog.LogValuer for structured logging. Example_slogStructuredLogging demonstrates how to use slog for structured logging
Ecosystem
proxy.golang.org
proxy.golang.org
Latest Release
10 months ago
v1.1.0
10 months ago
Versions
6
6
Loading...
Readme
Loading...
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/stackprune/errors
spec |
| License | MIT |
| Namespace | github.com/stackprune |
| First Release | 11 months ago |
| Last Synced | 17 days ago |
Repository
| Stars | 1 on GitHub |
| Forks | 0 on GitHub |
Rankings on proxy.golang.org
Overall
Top 5.6%