Answers for "go string to byte array"

Go
3

go string to byte array

b := []byte("ABC€")
s := string([]byte{65, 66, 67, 226, 130, 172})
Posted by: Guest on February-17-2020

Browse Popular Code Answers by Language