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

Function callersSkip

error_test.go:316–320  ·  view source on GitHub ↗
(skip int)

Source from the content-addressed store, hash-verified

314}
315
316func callersSkip(skip int) []uintptr {
317 callers := make([]uintptr, MaxStackDepth)
318 length := runtime.Callers(skip+2, callers[:])
319 return callers[:length]
320}
321
322func readableStackTrace(callers []uintptr) string {
323 var result bytes.Buffer

Callers 2

TestSkipWorksFunction · 0.85
callersFunction · 0.85

Calls 1

CallersMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…