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 Updated 9 repo stars

File contents

muratmirgun/gophers commit dcd659e241

Frequently asked questions

npx get-skill add muratmirgun/go-control-flow-2