Go Error Handling

Use when writing, wrapping, inspecting, or logging Go errors. Covers strategy choice (sentinel vs typed vs opaque), wrapping with %w/%v, errors.Is/As/Join, the log-or-return rule, error strings, and panic/recover boundaries. Apply proactively whenever a function returns or accepts an error, even if the user has not asked about error handling.

muratmirgun 04e49b2 6.8 KB Updated

File contents

muratmirgun/gophers/tree/main/.claude-plugin/skills/go-error-handling commit 04e49b2444

Frequently asked questions

npx skillmds@latest add muratmirgun/go-error-handling-2