Documentation ¶
Index ¶
Constants ¶
View Source
const HashLength = 32
HashLength is the length of Hash
Variables ¶
This section is empty.
Functions ¶
func Bytes2String ¶
Bytes2String is transform []byte to string
func Hash2Bytes ¶ added in v0.1.0
Hash2Bytes is transform Hash to []byte
Types ¶
type Hash ¶
type Hash [HashLength]byte
Hash is fixed length []byte
func CreateHash ¶ added in v0.1.0
func CreateHash() Hash
CreateHash is used to create a random hash as wave id
func String2Hash ¶ added in v0.1.0
String2Hash is transform string to Hash
Click to show internal directories.
Click to hide internal directories.