Discover Packages
github.com/haraldrudell/parl
goid
package
Version:
v0.4.122
Opens a new window with list of versions in this module.
Published: Nov 4, 2023
License: ISC
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
goid.GoID() provides a unique goroutine identifier.
m := map[goid.ThreadID]SomeInterface{}
m[goid.GoID()] = …
GoID obtains a numeric string that as of Go1.18 is
assigned to each goroutine. This number is an increasing
unsigned integer beginning at 1 for the main invocation
Source Files
¶
Click to show internal directories.
Click to hide internal directories.