pkg/errors
Simple error handling primitives observed · 2026-08-28
Health v2 · maintenance only
56/100
- Activity 74
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3902
- days_rel: n/a
- days_push: 159
- n_releases_24m: 0
Adoption not part of the score
8259 stars · 715 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Go library providing simple error handling primitives, most notably errors.Wrap for adding context and stack traces to errors without destroying the original value. It is now in maintenance mode since Go 1.13's standard errors package covers wrapping with %w.
Use cases
- add context to errors in go
- wrap errors with stack traces in go
- get the original cause of a wrapped error
- improve error messages in go applications
- debug where an error originated in go code
When to choose
- you are on Go < 1.13 and need error wrapping
- you want stack traces captured at error creation
- you maintain an existing codebase already using this package
When to avoid
- you are on Go 1.13+ and can use the standard errors package with %w wrapping
- you need actively developed features or new functionality
- you need errors.Is/errors.As compatibility features built-in
Facets
library · maturity maintenance
error-handling developer-tools developer-tools backend programming-languages go cross-platform go error-wrapping stack-traces error-context standard-library-alternative
5 sources
- readme: https://github.com/pkg/errors · fetched 2026-08-28 · 05f05fab4a67
- homepage: https://godoc.org/github.com/pkg/errors · fetched 2026-08-29 · 3d1a90a8fa8f
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://pkg.go.dev/github.com/pkg/errors · fetched 2026-08-29 · 1bf99fbd5b56
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pkg/errors | main | 56 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem