# README
z
辅助函数
- 字符串与字节数组相互转换函数
- 生成
hash
值 mono
时间- 随机函数
例子
fmt.Println(Now())
Output:
2023-02-08 17:00:54.628575733 +0800 CST m=+1.001091642
# Functions
AnyHash 不同进程内同一个值获取的可能不同,不能用作持久化的hash.
BusyDelay waits for given duration using busy waiting.
BytesToString converts byte slice to string without a memory allocation.
FastRand is a fast thread local random function.go:linkname FastRand runtime.fastrand.
FastRandUint32n returns pseudorandom uint32 in the range [0..maxN).
No description provided by the author
MemHash 不同进程内同一个值获取的可能不同,不能用作持久化的hash.
MemHashString 不同进程内同一个值获取的可能不同,不能用作持久化的hash.
go:linkname runtimeNanotime runtime.nanotime.
MonoSince returns the time elapsed since t, obtained previously using Now.
Now returns the current wall clock time.
NowWithOffset returns the wall clock time with given offset.
StringToBytes converts string to byte slice without a memory allocation.
# Interfaces
No description provided by the author
# Type aliases
MonoTimeDuration 防止MonoSince时参数传递错误.