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).

om-scogo 275a1a6 4 files · 18.1 KB Updated 0 repo stars

File contents

om-scogo/skillsh-scraper/tree/main/data/skills/cxuu-golang-skills/go-error-handling commit 275a1a65cc

Frequently asked questions

npx skillmds add om-scogo/go-error-handling