Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
由于 string 类型的底层表示是一个指向字节数组的指针,因此可以通过 unsafe.Pointer 和类型转换来绕过这些限制。 BytesToString converts byte slice to string without a memory allocation.
func StringToBytes ¶
StringToBytes converts string to byte slice without a memory allocation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.