golang-rules
Installation
SKILL.md
Go Rules
These rules come from app/rules/golang/ in ai-toolkit. They cover
the project's standards for coding style, frameworks, patterns,
security, and testing in Go. Apply them when writing or
reviewing Go code.
Go Coding Style
Naming
- MixedCaps/mixedCaps only. No underscores in Go names (except test functions).
- Exported:
PascalCase. Unexported:camelCase. Acronyms:HTTPClient,userID. - Short variable names in small scopes:
i,r,w,ctx,err. - Descriptive names in larger scopes:
userRepository,requestTimeout. - Package names: short, lowercase, singular (
auth,user, notutils,helpers).