@samber/golang-error-handling

Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log aggregation 3rd-party tools. Apply when creating, wrapping, inspecting, or logging errors in Go code.

View in AI SkillSafe app
36290 downloads
0 stars
0 demos
SKILL.md

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@samber/golang-error-handling/verified)](https://skillsafe.ai/skill/@samber/golang-error-handling/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@samber/golang-error-handling/installs)](https://skillsafe.ai/skill/@samber/golang-error-handling/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@samber/golang-error-handling/scan)](https://skillsafe.ai/skill/@samber/golang-error-handling/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@samber/golang-error-handling/eval)](https://skillsafe.ai/skill/@samber/golang-error-handling/)