Go's control flow is deliberately minimal — there's only one loop keyword (for), no parentheses around conditions, and mandatory braces. This simplicity is intentional, giving one clear way to do each thing.
if — కుండలీకరణలు లేకుండా, ఐచ్ఛిక init స్టేట్మెంట్తో
x > {
fmt.Println()
} x > {
fmt.Println()
} {
fmt.Println()
}
err := doSomething(); err != {
err
}
