MCPcopy Index your code
hub / github.com/go-errors/errors / readableStackTrace

Function readableStackTrace

error_test.go:322–329  ·  view source on GitHub ↗
(callers []uintptr)

Source from the content-addressed store, hash-verified

320}
321
322func readableStackTrace(callers []uintptr) string {
323 var result bytes.Buffer
324 frames := callersToFrames(callers)
325 for _, frame := range frames {
326 result.WriteString(fmt.Sprintf("%s:%d (%#x)\n\t%s\n", frame.File, frame.Line, frame.PC, frame.Function))
327 }
328 return result.String()
329}
330
331func callersToFrames(callers []uintptr) []runtime.Frame {
332 frames := make([]runtime.Frame, 0, len(callers))

Callers 1

stackCompareErrorFunction · 0.85

Calls 2

callersToFramesFunction · 0.85
StringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…