a version of runtime.Caller that returns a Frame, not a uintptr.
()
| 242 | |
| 243 | // a version of runtime.Caller that returns a Frame, not a uintptr. |
| 244 | func caller() Frame { |
| 245 | var pcs [3]uintptr |
| 246 | n := runtime.Callers(2, pcs[:]) |
| 247 | frames := runtime.CallersFrames(pcs[:n]) |
| 248 | frame, _ := frames.Next() |
| 249 | return Frame(frame.PC) |
| 250 | } |
no test coverage detected
searching dependent graphs…