Documentation ¶
Overview ¶
Package runtimeutils contains utilities for inspecting Go's runtime system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFunction ¶
GetFunction returns metadata about function based on pointer to a function
Example usage:
func foo() {} GetFunction(foo)
func GetFunctionName ¶
func GetFunctionName(function interface{}) string
GetFunctionName returns name of the function
Example usage:
func foo() {} GetFunctionName(foo) // returns string containing "foo" substring
func GoroutineID ¶
func GoroutineID() uint64
GoroutineID returns current GO Routine ID (parsed from runtime.Stack)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.