Go Defensive

Use when hardening Go code at API boundaries: copy slices/maps on entry and return, defer cleanup, verify interface compliance at compile time, model time with time.Time/time.Duration, design enum zero values, prefer crypto/rand, and inject clocks for testability. Apply proactively when reviewing for robustness. Error-handling strategy: see go-error-handling.

muratmirgun Updated

File contents

muratmirgun/gophers/tree/main/.claude-plugin/skills/go-defensive commit 9986ea07c2

Frequently asked questions

npx skillmds@latest add muratmirgun/go-defensive-2