diff --git a/cwriter/writer.go b/cwriter/writer.go index 138a519..cbbc7d9 100644 --- a/cwriter/writer.go +++ b/cwriter/writer.go @@ -11,7 +11,6 @@ // Writer is a buffered the writer that updates the terminal. // The contents of writer will be flushed when Flush is called. type Writer struct { - // Out is the writer to write to out io.Writer buf bytes.Buffer @@ -25,6 +24,7 @@ } } +// Flush flushes the underlying buffer func (w *Writer) Flush() error { // do nothing if buffer is empty if len(w.buf.Bytes()) == 0 {