utils

package
v0.0.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 7 Imported by: 0

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

func GetGoroutineId() (uint64, error)

GetGoroutineId 获得当前goroutine id函数

func QuickGetGoroutineId added in v0.0.14

func QuickGetGoroutineId() uint64

QuickGetGoroutineId 快速获取goroutine id, 如果出现错误,则返回0

func ToHexString added in v0.0.17

func ToHexString(data []byte, upper bool) string

ToHexString byte数组转换成 16进制表示的string,upper 表示生成的十六进制是否是大写, true表示大写, false表示小写 与 hex.EncodeToString 相比它支持大小写输出

func ToUpperHexString added in v0.0.17

func ToUpperHexString(data []byte) string

ToUpperHexString byte数组转换成大写的16进制表示的string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL