Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetSliceLen ¶
SetSliceLen sets a byte slices length and returns its previous length. Deprecated: You should use `bytes = bytes[:length]` instead as performance is identical.
func SetStringLen ¶
SetStringLen sets a strings length and returns its previous length.
func StringToBytes ¶
StringToBytes converts string to byte slice without escaping to the heap.
func StringToBytesFast ¶
StringToBytesFast converts string to byte slice without escaping to the heap. NOTE: It is not guarenteed to set the cap correctly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.