Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFrames ¶
func GetCallerCodePath ¶
GetCallerCodePath returns the caller path and line number.
The argument skip is the number of stack frames to skip before identifying the frame to use, with 0 identifying the frame for GetCallerCodePath itself and 1 identifying the caller of GetCallerCodePath.
Types ¶
type Frame ¶
type Frame struct {
File string `json:"file"`
Line int `json:"line"`
Function string `json:"function"`
}
func GetCallerFrames ¶
GetCallerFrames returns a slice of Frame objects representing the stack
The skip argument is the number of frames to skip before starting to collect frames, with 0 identifying the frame for GetCallerFrames itself, and 1 identifying the caller of GetCallerFrames
No more than 100 frames will be collected
func MergeStacks ¶
Click to show internal directories.
Click to hide internal directories.