go-style

Installation
SKILL.md

Go Style

Write Go code that is readable, maintainable, and predictable. Favour clarity over cleverness; the language is small on purpose.

For the comprehensive idiomatic reference, see references/idioms.md. For the catalogue of language gotchas, see references/pitfalls.md.

Decision shortcuts

Naming

  • Packages: lowercase, singular, no underscores, no util / common / helpers. Name describes purpose.
  • Variable length tracks scope: i in a tight loop, customerOrderHistory across a long function.
  • Getters omit Get; setters use Set. obj.Owner(), obj.SetOwner(u).
  • Acronyms keep consistent case: URL, ID, HTTP — never Url, Id, Http.
Related skills
Installs
2
Repository
marsolab/skills
First Seen
2 days ago