Go Declarations

Use when declaring or initializing Go variables, constants, structs, or maps. Covers var vs :=, grouped declaration blocks, iota enums starting at 1, struct/map/slice composite literals, raw string literals, `any` over `interface{}`, and avoiding shadowed builtins. Apply proactively to any new struct, const block, or top-level var, even if the user did not ask about declaration style. Does not cover identifier naming (see go-naming).

muratmirgun 1501464 6.1 KB Updated

File contents

muratmirgun/gophers/tree/main/.claude-plugin/skills/go-declarations commit 150146444a

Frequently asked questions

npx skillmds@latest add muratmirgun/go-declarations-2