caller

package
v0.113.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	Function string
	File     string
	Line     int
}

Frame contains information about the caller. This is a subset of the fields in runtime.Frame.

func GetFrame

func GetFrame(depth int) Frame

GetFrame returns information about a caller function at the specified depth above this function in the the call stack.

Jump to

Keyboard shortcuts

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