Check out example codes for "go string to byte array". It will help you in understanding the concepts better.

Code Example 1

b := []byte("ABC€")
s := string([]byte{65, 66, 67, 226, 130, 172})

Learn ReactJs, React Native from akashmittal.com