Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString use a quick way to cast []byte to string without any alloc, in a 6000 length test, this is faster than `string(bytes)` one 2200 times
func StringToBytes ¶
StringToBytes use a quick way to cast string to []byte without any alloc, in a 6000 length test, this is faster than `[]byte(string)` one 2200 times CAUTION: this is marked as unsafe so have limit, do not change the result.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.