Reset the current state.
()
| 138 | |
| 139 | // Reset the current state. |
| 140 | func (b *Writer) reset() { |
| 141 | b.buf = b.buf[:0] |
| 142 | b.pos = 0 |
| 143 | b.cell = cell{} |
| 144 | b.endChar = 0 |
| 145 | b.lines = b.lines[0:0] |
| 146 | b.widths = b.widths[0:0] |
| 147 | b.addLine(true) |
| 148 | } |
| 149 | |
| 150 | // Internal representation (current state): |
| 151 | // |
no test coverage detected