package
Version:
v0.0.0-...-0d9f38a
Opens a new window with list of versions in this module.
Published: Nov 20, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation
¶
Package caller provides packaging for system runtime.Caller
type Caller struct {
File File `json:"file"`
Func Function `json:"function"`
Line int `json:"line"`
}
Caller identifies a caller
func GetAllCallers() (callers []Caller)
GetAllCallers get all caller infos
GetCaller get last caller. If skip is set to 0, will get yourself.
String implements fmt.Stringer
File identifies a full file path
Base returns the base file name.
WithDir returns base file name with specified maximum directories.
File identifies a full function path
Base returns the full base of a function.
Name returns the base function name.
Package returns package name
Source Files
¶
Click to show internal directories.
Click to hide internal directories.