
Golang Naming
Covers the full spectrum of Go naming conventions, from the obvious (MixedCaps, no underscores) to the stuff that actually trips people up: when to use New versus NewTypeName, why boolean fields need the is/has prefix but the zero value in enums should be StatusUnknown not StatusReady, and why error strings stay lowercase even for acronyms. Includes a quick reference table and detailed breakdowns across packages, identifiers, functions, and error types. Useful when you're in a naming debate during code review, refactoring a codebase to match Go idioms, or just want to stop second-guessing whether it should be ErrNotFound or NotFoundError. Written by samber, who maintains several Go tooling projects.
- skills.sh installs
- 42.5K
- GitHub stars
- 3.8K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-naming --agent claude-codeInstalls into .claude/skills of the current project.
Files
Community default. A company skill that explicitly supersedes
samber/cc-skills-golang@golang-namingskill takes precedence.
Go Naming Conventions
Go favors short, readable names. Capitalization controls visibility — uppercase is exported, lowercase is unexported. All identifiers MUST use MixedCaps, NEVER underscores.
"Clear is better than clever." — Go Proverbs
"Design the architecture, name the components, document the details." — Go Proverbs
To ignore a rule, just add a comment to the code.
Quick Reference
Sponsors
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- Testing & QA, Documentation, Code Review & Quality, Debugging, Go
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Database42.5K
- Golang Safety42.2K
- Golang Project Layout42.1K
- Golang Documentation42K
- Golang Modernize42K
- Golang Lint41.9K
- Golang Data Structures41.8K
- Golang Troubleshooting41.6K
- Golang Observability41.5K
- Golang Dependency Management41.4K
- Golang Structs Interfaces41.3K
- Golang Cli41.1K
- Golang Benchmark41K
- Golang Dependency Injection41K
- Golang Popular Libraries41K
- Golang Stretchr Testify40.9K
- Golang Continuous Integration40.9K
- Golang Grpc40.7K
- Golang Samber Lo40K
- Golang Stay Updated40K
- Golang Samber Do39.8K
- Golang Samber Slog39.8K
- Golang Samber Oops39.7K
- Golang Samber Mo39.7K