gonalg byte array to string code example
Example 1: go string to byte array
b := []byte("ABC€")
s := string([]byte{65, 66, 67, 226, 130, 172})
Example 2: golang byte to string
str:=string(data)
fmt.Print(str)
b := []byte("ABC€")
s := string([]byte{65, 66, 67, 226, 130, 172})
str:=string(data)
fmt.Print(str)