Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCap = 15
DefaultCap is a default cap for frames array. It can be changed to number of expected frames for purpose of performance optimisation.
Functions ¶
Types ¶
type Frame ¶
type Frame struct { // Path contains a file path. Path string // Line contains a line number. Line int }
Frame is a single step in stack trace.
func StackTrace ¶
StackTrace returns stack trace of an error. It will be empty if err is not of type Error.
Click to show internal directories.
Click to hide internal directories.