(skip int)
| 36 | } |
| 37 | |
| 38 | func callerName(skip int) string { |
| 39 | pc, _, _, ok := runtime.Caller(skip + 1) |
| 40 | if !ok { |
| 41 | return "" |
| 42 | } |
| 43 | return runtime.FuncForPC(pc).Name() |
| 44 | } |
| 45 | |
| 46 | // caller returns a string containing filename and line number of |
| 47 | // the nearest function invocation on the calling goroutine's stack, |