Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FrameCap = 20
FrameCap is a default cap for frames array. It can be changed to number of expected frames for purpose of performance optimisation.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct {
// Func contains a function name.
Func string
// Line contains a line number.
Line int
// Path contains a file path.
Path string
// Package is the package name for this frame
Package string
}
Frame is a single frame in a stacktrace
type Stacktrace ¶
type Stacktrace struct {
Frames []Frame
}
Stacktrace represents a stacktrace
func (*Stacktrace) String ¶
func (t *Stacktrace) String() string
String returns a string representation of a stacktrace
Click to show internal directories.
Click to hide internal directories.