caller

package
v2.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncName

func FuncName(options ...OptionFuncName) string

FuncName return caller function name.

Types

type OptFuncName

type OptFuncName struct {
	Skip int
}

OptFuncName represents options for the FuncName function.

type OptionFuncName

type OptionFuncName func(*OptFuncName)

OptionFuncName represents an option for the FuncName function.

func WithSkip

func WithSkip(skip int) OptionFuncName

WithSkip sets the number of stack frames to skip when identifying the caller.

Jump to

Keyboard shortcuts

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