...

/

Range and Close

Range and Close

This lesson will teach you a way to close a channel.

We'll cover the following...

If you remember the lesson on channels, you are already familiar with this pattern.

In Go, we have a range function which lets us iterate over elements in different data structures. Using this function, we can range ...