Codebase list golang-github-vbauerster-mpb / 1ca557b
exported comment Vladimir Bauer 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1010 // Writer is a buffered the writer that updates the terminal.
1111 // The contents of writer will be flushed when Flush is called.
1212 type Writer struct {
13 // Out is the writer to write to
1413 out io.Writer
1514
1615 buf bytes.Buffer
2423 }
2524 }
2625
26 // Flush flushes the underlying buffer
2727 func (w *Writer) Flush() error {
2828 // do nothing if buffer is empty
2929 if len(w.buf.Bytes()) == 0 {