callers returns the stack trace, skipping the specified number of frames.
(skip int)
| 91 | |
| 92 | // callers returns the stack trace, skipping the specified number of frames. |
| 93 | func callers(skip int) []uintptr { |
| 94 | stack := make([]uintptr, 10) |
| 95 | n := runtime.Callers(skip+2, stack) |
| 96 | return stack[:n] |
| 97 | } |
no test coverage detected