go.bigb.es/auxilia

v0.2.0
Doc Versions Source

Documentation

Package goroutine provides utilities for inspecting goroutines at runtime, including obtaining IDs and stack traces.

Functions

f func ID

src
func ID() uint64

ID returns the goroutine ID of the caller.

f func Stack

src
func Stack(goid uint64) string

Stack returns the stack trace for the goroutine with the given ID. Returns an empty string if the goroutine is not found.

Source Files