What problem does it solve?
Go projects often struggle with inconsistent naming, leading to reduced readability and increased maintenance burden. This skill provides a cohesive set of Go naming rules to unify identifiers across packages, improve code searchability, and align with community conventions.
Core Features & Use Cases
- MixedCaps naming for packages, types, and variables to improve readability.
- Boolean predicates use
Is/Has/Can prefixes to clearly express state.
- Acronym handling: use all caps (URL, HTTP) or all lower in identifiers; ensure consistent casing.
- Constructor naming: use
New for single-type packages and NewTypeName for multiple types.
- Enum patterns with iota: protect zero value, or use explicit Unknown sentinel.
- Test naming: avoid stuttering and use descriptive, consistent names.
Quick Start
Review your Go codebase and rename identifiers to MixedCaps, prefix booleans with Is/Has/Can, standardize acronyms, and apply constructor and enum guidelines.