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 fc28f01 5 files · 12.2 KB Updated

File contents

muratmirgun/gophers/tree/main/skills/go-declarations commit fc28f0110d

Frequently asked questions

npx skillmds@latest add muratmirgun/go-declarations