I have a slice of bytes to represent a null-terminated string with trailing garbage bytes.
页: 1 我怎么能够将一个零度的沥青阵列转化为扼杀?
s := string(byteArray[:n])
但它没有工作
[54 49 0 101 0 0 0 0 64 31 1 0 0]
61e@
页: 1
https://go.dev/play/p/FDPPLgGjHOY”rel=“nofollow noreferer”>https://go.dev/play/p/FDPPLgGjHOY