Go Control Flow

Use when writing conditionals, loops, switches, type switches, or blank-identifier patterns in Go. Covers if-with-initialization, guard clauses, early returns, the unified for loop, range over slices/maps/strings/channels, parallel assignment, labeled break, and `_` for discards and side-effect imports. Apply proactively to any new if/for/switch, even when the user does not mention scoping or shadowing. Does not cover error-flow specifics (see go-error-handling).

muratmirgun dcd659e 5.3 KB Updated

File contents

muratmirgun/gophers/tree/main/.claude-plugin/skills/go-control-flow commit dcd659e241

Frequently asked questions

npx skillmds@latest add muratmirgun/go-control-flow-2