Check out example codes for "iterating through string golang". It will help you in understanding the concepts better.
Code Example 1
package main
import (
"fmt"
"strings"
)
func main() {
words := strings.Fields("This, that, and the other.")
for i, word := range words {
fmt.Println(i, " => ", word)
}
}
Learn ReactJs, React Native from akashmittal.com