FormatStack formats all remaining frames in the provided stacktrace -- minus the final runtime.main/runtime.goexit frame.
(stack *Stack)
| 158 | // FormatStack formats all remaining frames in the provided stacktrace -- minus |
| 159 | // the final runtime.main/runtime.goexit frame. |
| 160 | func (sf *Formatter) FormatStack(stack *Stack) { |
| 161 | // Note: On the last iteration, frames.Next() returns false, with a valid |
| 162 | // frame, but we ignore this frame. The last frame is a runtime frame which |
| 163 | // adds noise, since it's only either runtime.main or runtime.goexit. |
| 164 | for frame, more := stack.Next(); more; frame, more = stack.Next() { |
| 165 | sf.FormatFrame(frame) |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | // FormatFrame formats the given frame. |
| 170 | func (sf *Formatter) FormatFrame(frame runtime.Frame) { |
no test coverage detected