Documentation
¶
Overview ¶
Package stacktrace provides support for gathering stack traces efficiently.
Simplified version of uber-go/zap implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter formats a stack trace into a readable string representation.
func NewFormatter ¶
NewFormatter builds a new Formatter.
func (*Formatter) FormatFrame ¶
FormatFrame formats the given frame.
func (*Formatter) FormatStack ¶
FormatStack formats all remaining frames in the provided stacktrace -- minus the final runtime.main/runtime.goexit frame.
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack is a captured stack trace.
func (*Stack) Count ¶
Count reports the total number of frames in this stacktrace. Count DOES NOT change as Next is called.
Click to show internal directories.
Click to hide internal directories.