WriteTo writes formatted text to w. It implements [io.WriterTo] interface.
(w io.Writer)
| 67 | // WriteTo writes formatted text to w. |
| 68 | // It implements [io.WriterTo] interface. |
| 69 | func (f *Formatter) WriteTo(w io.Writer) (int64, error) { |
| 70 | return f.buf.WriteTo(w) |
| 71 | } |
| 72 | |
| 73 | // Printf writes formatted line into the [Formatter], automatically |
| 74 | // indented and with added newline at the end. |