Range in for loops

This lesson discusses range form of for loops and their use to iterate slices in Go

We'll cover the following

Range

The range form of the for loop iterates over a slice or a map. Being able to iterate over all the elements of a data structure is very useful and range simplifies the iteration.

Get hands-on with 1400+ tech skills courses.