goid

package
v0.0.0-...-cedfd68 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package goid provides a function to get the current goroutine ID.

Index

Constants

This section is empty.

Variables

View Source
var MinGoVersion = goversion.GoVersion{Major: 1, Minor: 13, Rev: 0}
View Source
var SupportedArchitectures = []string{"amd64", "arm64"}

Functions

func GetGoroutineIDOffset

func GetGoroutineIDOffset(version goversion.GoVersion, goarch string) (uint64, error)

GetGoroutineIDOffset gets the offset of the "goid" field in the "runtime.g" struct

Types

This section is empty.

Directories

Path Synopsis
Package main is responsible for extracting Go type information from DWARF data across multiple Go versions.
Package main is responsible for extracting Go type information from DWARF data across multiple Go versions.
testprogram
Package main holds main related files
Package main holds main related files

Jump to

Keyboard shortcuts

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