NewFormatter builds a new Formatter.
(b *buffer.Buffer)
| 152 | |
| 153 | // NewFormatter builds a new Formatter. |
| 154 | func NewFormatter(b *buffer.Buffer) Formatter { |
| 155 | return Formatter{b: b} |
| 156 | } |
| 157 | |
| 158 | // FormatStack formats all remaining frames in the provided stacktrace -- minus |
| 159 | // the final runtime.main/runtime.goexit frame. |