Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
errors
A drop-in replacement for Go errors, with some added sugar! Unwrap user-friendly messages, HTTP status code, easy wrapping with multiple error types. (by bnkamalesh)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
The pkg.go.dev page lists 14k+ projects importing it, but the Github repository has been archived which would seem to discourage use. I'm also not a huge fan of the naming conflict with the stdlib errors package. The README notes it went into maintenance mode but it appears this, too, has passed.
Is anyone using this package? Is it dead? If not, is there another good package or approach for generating stack traces for errors that you've found and liked? I've seen github.com/go-errors/errors which offers simple stack traces but does not seem to have great adoption. I feel like there must be a popular solution for this, besides rolling your own stack trace functions with the runtime lib.
I did the same :)
https://github.com/cockroachdb/errors is the most featureful in this space, but is heavy if you don't need network portability, redaction, and all the other bells and whistles.
Related posts
- go-faster/errors: clear go error wrapping with caller (xerrors fork with Wrap)
-
errors alternatives - tracerr and err2
3 projects | 6 Dec 2023
- Will go ever get C/Java style exceptions?
- ProblemDetails: Error Handler base on RFC 7807 standard for Go.
- ProblemDetails: Error Handler base on RFC 7807 standard for Go.