Go Code Style

Use when writing or reviewing Go code for clarity, formatting, control flow, variable declarations, switch usage, and function design. Covers the priority order (clarity > simplicity > concision > maintainability > consistency), gofmt rules, early-return / no-else patterns, switch over if-else chains, slice/map initialization, and value-vs-pointer choices. Apply proactively to every Go change, even when the user has not asked about style.

muratmirgun 9ee64bc 7.1 KB Updated

File contents

muratmirgun/gophers/tree/main/.claude-plugin/skills/go-code-style commit 9ee64bcb17

Frequently asked questions

npx skillmds@latest add muratmirgun/go-code-style-2