Go Declarations

Use when declaring or initializing Go variables, constants, structs, or maps — including var vs :=, reducing scope with if-init, formatting composite literals, designing iota enums, and using any instead of interface{}. Also use when writing a new struct or const block, even if the user doesn't ask about declaration style. Does not cover naming conventions (see go-naming).

aneviaro f640294 7 files · 18.3 KB Updated

File contents

aneviaro/pipack/tree/main/agent/skills/go-declarations commit f640294cb8

Frequently asked questions

npx skillmds@latest add aneviaro/go-declarations