Answers for "byte array from string go"

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
0

golang

s := string([]byte{65, 66, 67, 226, 130, 172})
fmt.Println(s) // ABC€
Posted by: Guest on January-01-1970

Code answers related to "byte array from string go"

Browse Popular Code Answers by Language