Go Errors

Idiomatic Go error handling. This skill should be used when the user writes, reviews, or debugs Go error code — wrapping with `%w`, `errors.Is`/`errors.AsType`, sentinel vs typed errors, `errors.Join`, an unchecked `Close`, when panic is legitimate, `Must` helpers, enum-switch dispatch defaults, keeping payload values out of boundary errors and logs, or chasing a swallowed or context-losing error. Pair with the `errorlint` linter. Go only.

Cadasto 65c3d87 5.9 KB Updated

File contents

Cadasto/go-coding-plugin/tree/main/skills/go-errors commit 65c3d87caa

Frequently asked questions

npx skillmds@latest add cadasto/go-errors