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 9 repo stars

File contents

muratmirgun/gophers commit 66628d28a3

Frequently asked questions

npx get-skill add muratmirgun/go-defensive