For Loop

Go has only one looping construct, the for loop. The basic for loop has three components separated by semicolons:

Visit the following resources to learn more: