Go - Loop (for statement)

Card Puncher Data Processing

Go - Loop (for statement)

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 { 
    // ... 
}







Share this page:
Follow us:
Task Runner