Reset resets the Builder to be empty.
()
| 18 | |
| 19 | // Reset resets the Builder to be empty. |
| 20 | func (b *Builder) Reset() { |
| 21 | b.bytes = nil |
| 22 | b.containers = b.containers[:0] |
| 23 | } |
| 24 | |
| 25 | // Truncate resets the Builder to be empty, but unlike Reset, it retains the |
| 26 | // storage returned by Bytes. |
no outgoing calls