callers returns the stack callers. Note that it here just retrieves the caller memory address array not the caller information.
(skip ...int)
| 126 | // callers returns the stack callers. |
| 127 | // Note that it here just retrieves the caller memory address array not the caller information. |
| 128 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…