Check out example codes for "iterate over struct slice golang". It will help you in understanding the concepts better.

Code Example 1

for i, x := range p.Fruits

Learn ReactJs, React Native from akashmittal.com