Golang Patterns

Idiomatic Go for production services and the test suite that proves them, covering zero values, interface design, error wrapping, context and cancellation, dependency injection, allocation discipline, golangci-lint v2, table-driven tests, hand-written fakes, benchmarks, and fuzzing. Use when writing a new Go package, reviewing Go code, fixing a goroutine leak, designing an interface at the consumer, setting up Go linting, converting copy-pasted tests into a table, testing an HTTP handler, or benchmarking a hot path. Not for the language-neutral SOLID, DRY, and naming floor, use `coding-standards`.

Lukk17 60e5166 10 files · 65.5 KB Updated

File contents

Lukk17/agent-standards/tree/main/.agents/skills/golang-patterns commit 60e51666ab

Frequently asked questions

npx skillmds@latest add lukk17/golang-patterns