utils

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 6 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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