Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts a byte slice to a string.
This is a shallow copy, means that the returned string reuse the underlying array in byte slice, it's your responsibility to keep the input byte slice survive until you don't access the string anymore.
func StringToBytes ¶
StringToBytes converts a string to a byte slice.
This is a shallow copy, means that the returned byte slice reuse the underlying array in string, so you can't change the returned byte slice in any situations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.