runtimeutils

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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

func GetFunction(function interface{}) *runtime.Func

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.

Jump to

Keyboard shortcuts

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