{"id":49858,"library":"pkg-errors","title":"pkg/errors","description":"Package errors provides simple error handling primitives.","status":"active","version":"0.9.1","language":"go","source_language":null,"source_url":"https://github.com/pkg/errors","tags":["errors","stack-trace","wrapping"],"install":[{"cmd":"go get github.com/pkg/errors","lang":"bash","label":"Install github.com/pkg/errors"}],"dependencies":[],"imports":[{"symbol":"errors","correct":"github.com/pkg/errors"}],"quickstart":{"code":"package main\n\nimport \"github.com/pkg/errors\"\n\nfunc main() {\n    err := errors.New(\"something went wrong\")\n    err = errors.Wrap(err, \"additional context\")\n    errors.Cause(err)\n}","lang":"go","description":"Create and wrap errors with stack traces"},"warnings":[{"fix":"Use standard library errors package with fmt.Errorf(\"%w\", err)","message":"Deprecated in favor of Go 1.13+ errors.Is/As/Wrap","severity":"breaking","affected_versions":">=1.13"}],"env_vars":null,"search_vec":"'error':3,6,9 'handl':7 'packag':2 'pkg/errors':1 'primit':8 'provid':4 'simpl':5 'stack':11 'stack-trac':10 'trace':12 'wrap':13","created_at":"2026-06-14T18:18:02.551030+00:00","updated_at":"2026-06-14T18:18:02.551030+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/pkg/errors","github":"https://github.com/pkg/errors","docs":"https://pkg.go.dev/github.com/pkg/errors#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-14","next_check":"2026-12-11","install_tag":null}}