7bcc1cc62b22fef3774d94cf7c5470646fa0f023
Previous version was entirely Kubernetes controller-specific (from kubernetes-conventions extraction). Replaced with 10 general Go anti-patterns from studying golang/go stdlib. Patterns: error+value returns, large interfaces, init() abuse, stuttering names, naked returns, error formatting, channel misuse, returning interfaces, panic in libraries, interface placement.
Go Patterns
Idiomatic Go patterns extracted from the Go standard library source code with verified file:line citations.
Structure
patterns/— Go stdlib patterns (interfaces, errors, concurrency, structs, testing, docs, style, API conventions, packages)smells/— Anti-patterns and common Go mistakeschangelog/— Daily digest of merged Go PRs
Philosophy
These rules are derived from what the Go standard library 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%