I have a string, byteArray
:
byteArray := []byte("Hello, 世界-123..")
fmt.Println(byteArray)
which looks like:
[72 101 108 108 111 44 32 228 184 150 231 149 140 45 49 50 51 46 46]
I need to get byteArray[0]
as a string, like "72"
, but they're byte type.
How do I achieve this?