Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Colorize bool
FilterRuntime bool // hide runtime.* frames, default true
MaxFrames int // 0 = unlimited
RelativeTo string // base path to make file paths relative
}
Config controls formatting behavior.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a Config with sensible defaults.
type Frame ¶
type Frame struct {
Function string // fully qualified function name
ShortFunc string // just the function name
Package string // package path
File string // absolute file path
ShortFile string // filename only
Line int
}
Frame represents a single stack frame.
Click to show internal directories.
Click to hide internal directories.