callers returns the call stack, skipping the first frames.
(skip int)
| 24 | |
| 25 | // callers returns the call stack, skipping the first frames. |
| 26 | func callers(skip int) *stack { |
| 27 | const depth = 32 |
| 28 | var pcs [depth]uintptr |
| 29 | n := runtime.Callers(skip, pcs[:]) |
| 30 | var st stack = pcs[0:n] |
| 31 | return &st |
| 32 | } |
| 33 | |
| 34 | // StackTrace implements the errors.stackTracer interface. |
| 35 | func (s *stack) StackTrace() errors.StackTrace { |
no outgoing calls
no test coverage detected