MCPcopy
hub / github.com/gogf/gf / callers

Function callers

errors/gerror/gerror_api_stack.go:128–137  ·  view source on GitHub ↗

callers returns the stack callers. Note that it here just retrieves the caller memory address array not the caller information.

(skip ...int)

Source from the content-addressed store, hash-verified

126// callers returns the stack callers.
127// Note that it here just retrieves the caller memory address array not the caller information.
128func callers(skip ...int) stack {
129 var (
130 pcs [maxStackDepth]uintptr
131 n = 3
132 )
133 if len(skip) > 0 {
134 n += skip[0]
135 }
136 return pcs[:runtime.Callers(n, pcs[:])]
137}

Callers 15

NewWithOptionFunction · 0.85
NewFunction · 0.85
NewfFunction · 0.85
NewSkipFunction · 0.85
NewSkipfFunction · 0.85
WrapFunction · 0.85
WrapfFunction · 0.85
WrapSkipFunction · 0.85
WrapSkipfFunction · 0.85
NewCodeFunction · 0.85
NewCodefFunction · 0.85
NewCodeSkipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…