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.
Click to show internal directories.
Click to hide internal directories.