sk Skill · cxuu
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).
Open on skills.sh ↗read 2026-09-17
- installs 8w
- 244
- 30-day movement
- starts with the next reading
- Related entries
- 1
- Connections
- 1
goHTML
- Host repository
- cxuu/golang-skills
- Installs, lifetime
- 1,100
- Installs, 8 weeks
- 244
- Allowed tools
- Bash(bash:*)
- Host stars
- 161
- Host language
- HTML