Skip to content

Glossary: Go Basics

for

Also written: for loop, loop

Go's only loop keyword. It can count, repeat while a condition holds, run forever until `break`, or use `range`.

Where the book teaches it

Related terms

rangebreak