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 314a2fe 4 files · 8.9 KB Updated

File contents

muratmirgun/gophers/tree/main/skills/go-control-flow commit 314a2fe55b

Frequently asked questions

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