Documentation
¶
Overview ¶
Package utils, daog包使用的工具,现在只包含读取当前goroutine id的工具,未来可能会扩展
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGoroutineId ¶ added in v0.0.14
GetGoroutineId 获得当前goroutine id函数
func QuickGetGoroutineId ¶ added in v0.0.14
func QuickGetGoroutineId() uint64
QuickGetGoroutineId 快速获取goroutine id, 如果出现错误,则返回0
func ToHexString ¶ added in v0.0.17
ToHexString byte数组转换成 16进制表示的string,upper 表示生成的十六进制是否是大写, true表示大写, false表示小写 与 hex.EncodeToString 相比它支持大小写输出
func ToUpperHexString ¶ added in v0.0.17
ToUpperHexString byte数组转换成大写的16进制表示的string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.