runtimeutils

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

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