MCPcopy
hub / github.com/cortexlabs/cortex / callers

Function callers

pkg/lib/errors/stack.go:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26type stack []uintptr
27
28func callers() *stack {
29 const depth = 32
30 var pcs [depth]uintptr
31 n := runtime.Callers(3, pcs[:])
32 var st stack = pcs[0:n]
33 return &st
34}
35
36func (s *stack) Format(st fmt.State, verb rune) {
37 switch verb {

Callers 1

WithStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected