Go Style Decisions Coverage Index
One-line-per-rule index of sections in the Google Go Style Decisions. Use this to find authoritative guidance fast when generating or reviewing Go code.
Coverage legend:
- โ
โ Covered in
SKILL.mdwith rule + example - ๐ก โ Mentioned in
SKILL.mdbut lighter than the canonical doc - ๐ โ Covered in a reference file (see column)
- โ โ Not covered (deliberate scope limit, or known gap)
| Decision section | Coverage | Where in this skill |
|---|---|---|
| Naming | ||
underscores |
โ | SKILL.md ยง Naming |
package-names |
โ | SKILL.md ยง Naming |
receiver-names |
โ | SKILL.md ยง Naming |
constant-names |
๐ก | SKILL.md ยง Naming (covered by MixedCaps rule) |
initialisms |
โ | SKILL.md ยง Naming (Acronyms row) |
getters |
โ | SKILL.md ยง Naming (with Fetch / Compute alternatives) |
variable-names |
๐ก | SKILL.md ยง Naming + common_mentor_feedback.md |
repetition (and sub-sections) |
๐ | common_mentor_feedback.md ยง Avoid Repetitive Naming |
| Commentary | ||
comment-line-length |
โ | SKILL.md ยง Documentation |
examples |
๐ก | SKILL.md ยง Documentation (testable doc examples) |
named-result-parameters |
โ | (rare in practice; defer to canonical doc) |
package-comments |
โ | SKILL.md ยง Documentation |
| Imports | ||
import-renaming |
โ | SKILL.md ยง Imports + standard_go_patterns.md |
import-grouping |
โ | SKILL.md ยง Imports |
import-blank |
โ | (rare; defer to canonical doc) |
import-dot |
โ | (forbidden; not worth a section) |
| Errors | ||
returning-errors |
โ | SKILL.md ยง Error Handling |
error-strings |
โ | SKILL.md ยง Error Handling > Error string formatting |
handle-errors |
โ | SKILL.md ยง Error Handling |
in-band-errors |
๐ก | SKILL.md ยง Common Gotchas (use (value, ok)) |
indent-error-flow |
โ | SKILL.md ยง Error Handling > Indent error flow |
| Language | ||
literal-formatting |
๐ก | SKILL.md ยง Common Gotchas (struct literal field names) |
nil-slices |
โ | SKILL.md ยง Nil slices |
indentation-confusion |
๐ก | SKILL.md ยง Error Handling > Indent error flow |
func-formatting |
๐ก | gofmt handles most of this |
conditional-formatting |
โ | (gofmt handles most) |
copying |
๐ก | SKILL.md ยง Receiver type (sync.Mutex example) |
dont-panic |
โ | SKILL.md ยง Error Handling > Don't panic / Must |
must-functions |
โ | SKILL.md ยง Error Handling > Don't panic / Must |
goroutine-lifetimes |
๐ก | SKILL.md ยง Concurrency |
interfaces |
โ | SKILL.md ยง Interfaces |
generics |
โ | (rarely a readability blocker; defer) |
pass-values |
๐ก | SKILL.md ยง Receiver type |
receiver-type |
โ | SKILL.md ยง Receiver type |
switch-break |
โ | SKILL.md ยง Switch & break |
synchronous-functions |
๐ก | SKILL.md ยง Concurrency |
type-aliases |
โ | (rare; defer) |
use-percent-q |
โ | SKILL.md ยง Error Handling > Use %q for quoted strings |
use-any |
โ | SKILL.md ยง Self-audit checklist |
| Common libraries | ||
flags |
๐ก | standard_go_patterns.md |
logging |
โ | SKILL.md ยง Error Handling + standard_go_patterns.md |
contexts |
โ | SKILL.md ยง Concurrency |
crypto-rand |
โ | (security-specific; defer) |
| Useful test failures | ||
useful-test-failures (overview) |
โ | SKILL.md ยง Testing > Useful test failures |
assert (no assert libraries) |
โ | SKILL.md ยง Testing |
identify-the-function |
๐ | testing_failures.md |
identify-the-input |
๐ | testing_failures.md |
got-before-want |
๐ | testing_failures.md |
compare-full-structures |
๐ | testing_failures.md |
compare-stable-results |
๐ | testing_failures.md |
keep-going |
๐ | testing_failures.md |
types-of-equality |
๐ | testing_failures.md |
level-of-detail |
๐ | testing_failures.md |
print-diffs |
๐ | testing_failures.md |
test-error-semantics |
๐ | testing_failures.md |
| Test structure | ||
subtests |
๐ | testing_failures.md |
subtest-names |
๐ | testing_failures.md |
table-driven-tests |
๐ก | SKILL.md ยง Testing |
table-tests-data-driven |
โ | (advanced; defer to canonical) |
table-tests-identifying-the-row |
๐ | testing_failures.md |
mark-test-helpers |
๐ก | SKILL.md ยง Testing |
test-package |
โ | (rare decision; defer) |
use-package-testing |
โ | SKILL.md ยง Testing |