caller

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PC

func PC(depth int) uintptr

pc depth= 0: the caller position depth=-1: this function line 10

Types

type Frame

type Frame struct {
	PC         uintptr
	Pkg, Fun   string
	Path, File string
	Line       int
}

func GetFrame

func GetFrame(pc uintptr) (f Frame)

Jump to

Keyboard shortcuts

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