Golang Iterate Map of Array of Struct

Kevin FOO
Jun 29, 2021

Iterating through map is different from iterating through array as array has element number. To iterate map you will need the range method. You can use the range method to iterate through array too.

Running the code above will generate this result.

< Back to all the stories I had written

--

--

Kevin FOO

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.