caller

package
v0.0.0-...-349f3ea Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Skip is the key to set/get call skip value.
	Skip      = "_CallerSkip"
	GidKey    = "_CallerGid"
	CallerKey = "_CallerCaller"
)

Variables

This section is empty.

Functions

func GetCaller

func GetCaller(skip int, terminalPkg string) *runtime.Frame

GetCaller retrieves the name of the first non-logrus calling function

func GetPackageName

func GetPackageName(f string) string

GetPackageName reduces a fully qualified function name to the package name There really ought to be to be a better way...

func PrintStack

func PrintStack(max int)

PrintStack prints stack information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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