Go - Loop (for statement)

Card Puncher Data Processing

About

The for loop is the only loop statement in Go.

It has a number of forms

for initialization; condition; post { 
    // zero or more statements 
}
  • a traditional “while” loop
for condition { 
    // ... 
} 
  • a traditional infinite loop
for { 
    // ... 
}





Discover More
Card Puncher Data Processing
Go - Flow

if for switch (multi-way branch) Control statements may include an optional simple statement: a short variable declaration, an increment or assignment statement, or a function call ...



Share this page:
Follow us:
Task Runner