Answers for "create bytes by string golang"

Go
4

golang string to bytes

hello := []byte("hello-world")
Posted by: Guest on February-10-2021
0

golang

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

Browse Popular Code Answers by Language