Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StackTrace ¶
type StackTrace struct { File string // The file name of the frame. Line int // The line number of the frame. Function string // The name of the function for the frame. }
StackTrace represents a stack trace with file, line, and function name information.
func GetCaller ¶
func GetCaller(skip int) StackTrace
GetCaller returns a StackTrace value representing the file, line, and function name for the caller of the function that calls GetCaller.
func (StackTrace) String ¶
func (st StackTrace) String() string
type StackTraces ¶
type StackTraces []StackTrace
StackTraces represents a slice of StackTrace values.
func GetStackTrace ¶
func GetStackTrace() StackTraces
GetStackTrace returns a slice of StackTrace values representing the file, line, and function name for the stack trace.
func (StackTraces) String ¶
func (st StackTraces) String() string
String formats each stack trace in the slice into a string, joined by newline characters.
Click to show internal directories.
Click to hide internal directories.