goid

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 6 Imported by: 0

README

goid

Util to find ID of goroutine:

import "github.com/go-eden/common/goid"
...
var gid = goid.Gid() // goroutine's id

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gid

func Gid() (id int64)

Gid retrieve the current goroutine's unique id. It will try get gid by reflect for better performance, and could parse gid from stacktrace for failover supporting.

Types

This section is empty.

Directories

Path Synopsis
g
Package g exposes goroutine struct g to user space.
Package g exposes goroutine struct g to user space.

Jump to

Keyboard shortcuts

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