Google Go Style Decisions
Detailed Google decisions on naming, comments, imports, errors, language usage, standard-library choices, and testing style.
Detailed Google decisions on naming, comments, imports, errors, language usage, standard-library choices, and testing style.
- Author: Google
- Authority: community
- Kind: guide
- URL: https://google.github.io/styleguide/go/decisions
What it covers
- naming decisions
- comment and import rules
- error and testing guidance
Why authoritative
Detailed Google review guidance that expands the canonical style guide with concrete style decisions.
Use when
- what do Google Go style decisions say here
- how would Google readability review this Go code
- what naming or import rule does Google Go style use
Keywords
- google go style decisions, google readability, imports, error strings, initialisms, testing style
Used by
- package-names
- docs-comments
- receiver-choice
- interface-design
- package-and-import-semantics
- zero-values
- error-handling
- panic-and-recover
- nil-vs-empty-slices
- literal-syntax
- context-propagation
- context-values
- logging-slog
- generics
- subtests
- table-driven-tests
- test-helpers
- testing
- identifier-naming-and-initialisms
- import-style
- error-strings-and-error-flow
- test-failure-messages
- flags-and-cli-structure