MCPcopy Create free account
hub / github.com/docker/cli / reset

Method reset

cli/command/formatter/tabwriter/tabwriter.go:140–148  ·  view source on GitHub ↗

Reset the current state.

()

Source from the content-addressed store, hash-verified

138
139// Reset the current state.
140func (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//

Callers 3

InitMethod · 0.95
handlePanicMethod · 0.95
flushNoDefersMethod · 0.95

Calls 1

addLineMethod · 0.95

Tested by

no test coverage detected