Go Error Handling

Use when writing Go code that returns, wraps, or handles errors — choosing between sentinel errors, custom types, and fmt.Errorf (%w vs %v), structuring error flow, or deciding whether to log or return. Also use when propagating errors across package boundaries or using errors.Is/As, even if the user doesn't ask about error strategy. Does not cover panic/recover patterns (see go-defensive).

aneviaro 439c6e4 6 files · 29.1 KB Updated

File contents

aneviaro/pipack/tree/main/agent/skills/go-error-handling commit 439c6e4bb2

Frequently asked questions

npx skillmds@latest add aneviaro/go-error-handling