Understanding For Loops in Golang
In Golang a for loop
is a way to loop through an iterable.
The most basic For Loop
A classic For Loop
For Loop without Conditions
A for
without a condition will loop forever, until either a break
or return
is hit.
When to use continue
A continue
will move to the next iteration of the loop