The Go Style Guide and accompanying documents codify the current best approaches for writing readable and idiomatic Go. Adherence to the Style Guide is not intended to be absolute, and these documents will never be exhaustive. Our intention is to minimize the guesswork of writing readable Go so that newcomers to the language can avoid common mistakes.
Document | Link | Primary Audience | Normative | Canonical |
---|---|---|---|---|
Style Guide | https://google.github.io/styleguide/go/guide | Everyone | Yes | Yes |
Style Decisions | https://google.github.io/styleguide/go/decisions | Readability Mentors | Yes | No |
Best Practices | https://google.github.io/styleguide/go/best-practices | Anyone interested | No | No |