Flush writes any buffered data to the underlying io.Writer.
()
| 397 | |
| 398 | // Flush writes any buffered data to the underlying io.Writer. |
| 399 | func (b *Writer) Flush() error { |
| 400 | err := b.flush() |
| 401 | return err |
| 402 | } |
| 403 | |
| 404 | func (b *Writer) flush() error { |
| 405 | if b.err != nil { |