An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

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
Latest Release
v1.1.0
10 months ago
Versions
6
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%