Answers for "golang string to bytes"

Go
1

golang string to bytes

hello := []byte("hello-world")
Posted by: Guest on February-10-2021
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
1

golang []byte to string

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

Browse Popular Code Answers by Language