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

Code Example 1

fmt.Println(strings.Join(reg[:], ","))

Learn ReactJs, React Native from akashmittal.com