goid

package
v0.4.122 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

goid.GoID() provides a unique goroutine identifier.

m := map[goid.ThreadID]SomeInterface{}
m[goid.GoID()] = …

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoID

func GoID() (threadID parl.ThreadID)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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