Golang Error Handling

Idiomatic Golang error handling — %w wrapping, errors.Is/As, errors.Join, custom and sentinel errors, panic/recover, single handling rule, slog logging, samber/oops. Apply when creating, wrapping, inspecting, or logging errors. oops → `golang-samber-oops`; slog → `golang-samber-slog`.

context-labs 9c34bdc 5 files · 34.0 KB Updated

File contents

context-labs/whip/tree/main/.agents/skills/golang-error-handling commit 9c34bdc4f2

Frequently asked questions

npx skillmds@latest add context-labs/golang-error-handling