go.bigb.es/auxilia
Documentation
Index
Types
type Frame struct { Function string File string Line int }
Frame holds a single stack frame.
Trace is an ordered list of stack frames, outermost first.
Capture returns the current call stack, skipping skip frames from the caller's perspective. skip=0 means the caller of Capture is the first frame.
Format implements fmt.Formatter for Trace.
- %v / %s — compact: one line per frame, e.g. "funcName (file.go:42)"
- %+v — verbose: two lines per frame (function, then indented location)
Package stacktrace captures and formats Go call stacks.