MCPcopy Index your code
hub / github.com/pkg/errors / StackTrace

Method StackTrace

example_test.go:177–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175func Example_stackTrace() {
176 type stackTracer interface {
177 StackTrace() errors.StackTrace
178 }
179
180 err, ok := errors.Cause(fn()).(stackTracer)

Callers 3

TestStackTraceFunction · 0.65
BenchmarkStackFormattingFunction · 0.65
Example_stackTraceFunction · 0.65

Calls

no outgoing calls

Tested by 3

TestStackTraceFunction · 0.52
BenchmarkStackFormattingFunction · 0.52
Example_stackTraceFunction · 0.52