Func returns the function that contained this frame.
()
| 42 | |
| 43 | // Func returns the function that contained this frame. |
| 44 | func (frame *StackFrame) Func() *runtime.Func { |
| 45 | if frame.ProgramCounter == 0 { |
| 46 | return nil |
| 47 | } |
| 48 | return runtime.FuncForPC(frame.ProgramCounter) |
| 49 | } |
| 50 | |
| 51 | // String returns the stackframe formatted in the same way as go does |
| 52 | // in runtime/debug.Stack() |
no outgoing calls