Back to Developer Roadmap

Loops

src/data/roadmaps/golang/content/[email protected]

4.0613 B
Original Source

Loops

Go has only one looping construct: the flexible for loop. Basic form has initialization, condition, post statement. Supports for range for arrays, slices, maps, strings, channels. Can create infinite loops or while-style loops. Control with break and continue.

Visit the following resources to learn more: