Check out example codes for "loop list golang". It will help you in understanding the concepts better.

Code Example 1

a := []string{"Foo", "Bar"}
for i, s := range a {
    fmt.Println(i, s)
}

Learn ReactJs, React Native from akashmittal.com