0e5974f39a64ae389d566e6ed2a89bb369519857
Go Patterns
Idiomatic Go patterns extracted from the Go standard library and Kubernetes source code with verified file:line citations.
Structure
patterns/— Go stdlib patterns (interfaces, errors, concurrency, structs, testing, docs, style, API conventions, packages)kubernetes/— Production-scale patterns from Kubernetes (controllers, informers, workqueues)comparison/— stdlib vs Kubernetes patternssmells/— Anti-patterns and common Go mistakeschangelog/— Daily digest of merged PRs
Philosophy
These rules are derived from what the Go source code actually does, not opinions or blog posts. Every pattern cites specific files and line numbers.
When unsure how to do something in Go, look at how the standard library does it.
Languages
Markdown
100%