Discover Packages
github.com/go-eden/common
goid
package
Version:
v0.1.13
Opens a new window with list of versions in this module.
Published: May 4, 2021
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
goid
Util to find ID of goroutine:
import "github.com/go-eden/common/goid"
...
var gid = goid.Gid() // goroutine's id
Expand ▾
Collapse ▴
Documentation
¶
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.
Source Files
¶
Directories
¶
Package g exposes goroutine struct g to user space.
Package g exposes goroutine struct g to user space.
Click to show internal directories.
Click to hide internal directories.