Documentation ¶
Overview ¶
Package runtime provides functions that interact with Go's runtime system, based on the standard package runtime.
It also provides some auxiliary functions (e.g. function FuncPkg helps to get package name from a package path-qualified function name).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerFrame ¶
func CallerFrame(skip int) (frame stdruntime.Frame, ok bool)
CallerFrame returns the stack frame information of caller.
skip is the number of stack frames to ascend, with 0 identifying the caller of CallerFrame.
The return value ok is false if the information is unretrievable.
func CallerPkgFunc ¶
CallerPkgFunc returns the full package name and simple function name of its caller.
skip is the number of stack frames to ascend, with 0 identifying the caller of CallerPkgFunc.
The return value ok is false if the information is unretrievable.
func FramePkgFunc ¶
func FramePkgFunc(frame stdruntime.Frame) (pkg, fn string, ok bool)
FramePkgFunc returns the full package name and simple function name of the function in the specified stack frame.
The return value ok is false if the information is unretrievable.
Types ¶
This section is empty.