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

Function caller

stack_test.go:244–250  ·  view source on GitHub ↗

a version of runtime.Caller that returns a Frame, not a uintptr.

()

Source from the content-addressed store, hash-verified

242
243// a version of runtime.Caller that returns a Frame, not a uintptr.
244func caller() Frame {
245 var pcs [3]uintptr
246 n := runtime.Callers(2, pcs[:])
247 frames := runtime.CallersFrames(pcs[:n])
248 frame, _ := frames.Next()
249 return Frame(frame.PC)
250}

Callers 3

stack_test.goFile · 0.85
valMethod · 0.85
ptrMethod · 0.85

Calls 1

FrameTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…