Go Idiom

Enforces idiomatic Go style — name length scaled to scope, no stutter, useful zero values, guard clauses, correct defer placement, composition over inheritance, and doc comments in the required form. Use when writing, reviewing, or refactoring any Go code, and when the user asks whether something is idiomatic, mentions gofmt, go vet, golangci-lint, package naming, receiver names, struct embedding, or asks "is this Go-ish", "does this read like Go", "clean up this Go".

CasLubbers Updated

File contents

CasLubbers/code-design-skills/tree/main/skills/go-idiom commit bf4f1376bb

Frequently asked questions

npx skillmds@latest add caslubbers/go-idiom