sys

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvProd 线上环境
	EnvProd = "prod"
	// EnvQa qa测试环境
	EnvQa = "qa"
	// EnvOffline 离线环境
	EnvOffline = "offline"
)

Variables

This section is empty.

Functions

func GetGoRoutineId

func GetGoRoutineId() (uint64, error)

GetGoRoutineId 获得当前goroutine id函数

func QuickGetGoRoutineId

func QuickGetGoRoutineId() uint64

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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