NewWriter returns a new Writer that writes to w until an error is returned.
(w io.Writer)
| 5 | // NewWriter returns a new Writer that writes to w |
| 6 | // until an error is returned. |
| 7 | func NewWriter(w io.Writer) *Writer { |
| 8 | return &Writer{w: w} |
| 9 | } |
| 10 | |
| 11 | // Writer is in an implementation of the |
| 12 | // "sticky error writer" pattern as described |