August 2019
Beginner to intermediate
798 pages
17h 2m
English
Go also offers the range keyword, which is used in for loops and allows you to write easy-to-understand code for iterating over supported Go data types including Go channels. The main advantage of the range keyword is that you do not need to know the cardinality of a slice, a map, or a channel in order to process its elements one by one. You will see range in action later in the chapter.
Read now
Unlock full access