Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StdChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")
Functions ¶
func Bytes2String ¶
b2s converts byte slice to a string without memory allocation. See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .
Note it may break if string and/or slice header will change in the future go versions.
func RandomBytes ¶
Generate random []byte. @length length of []byte.
func String2Bytes ¶
s2b converts string to a byte slice without memory allocation.
Note it may break if string and/or slice header will change in the future go versions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.