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

Code Example 1

s := strings.Split("a,b,c", ",")

Code Example 2

someString := "one    two   three four "

words := strings.Fields(someString)

fmt.Println(words, len(words)) // [one two three four] 4

Learn ReactJs, React Native from akashmittal.com