skills/smithery.ai/go-control-flow

go-control-flow

Installation
SKILL.md

Go Control Flow

Source: Effective Go. Go's control structures are related to C but differ in important ways. Understanding these differences is essential for writing idiomatic Go code.

Go has no do or while loop—only a generalized for. There are no parentheses around conditions, and bodies must always be brace-delimited.


If Statements

Basic Form

Go's if requires braces and has no parentheses around the condition:

Installs
1
First Seen
Apr 15, 2026
go-control-flow from smithery.ai