What\'s the best way (fastest performance) to convert from []int8 to string?
[]int8
For []byte we could do string(byteslice), but for
[]byte
string(byteslice)
Use unsafe package.
func B2S(bs []int8) string { return strings.TrimRight(string(*(*[]byte)unsafe.Pointer(&bs)), "\x00") }
Send again ^^