Error Handling

Idiomatic Go error handling with wrapping and custom types.

shaddyx Updated

File contents

Error Handling

Idiomatic error handling in Go: wrap with %w, use errors.Is and errors.As, and define typed errors for domain rejections.

Use goleak to avoid goroutine leak detection confusion.

shaddyx/lazy-skills-mcp/tree/main/testdata/skills/dev/golang/error-handling commit 3aacc6d20a

Frequently asked questions

npx skillmds@latest add shaddyx/error-handling