Writer implements a concurrency safe io.Writer wrapper.
| 12 | |
| 13 | // Writer implements a concurrency safe io.Writer wrapper. |
| 14 | type Writer struct { |
| 15 | mu sync.Mutex |
| 16 | w io.Writer |
| 17 | |
| 18 | errorf func(f string, v ...interface{}) |
| 19 | } |
| 20 | |
| 21 | // New returns a new Writer that writes to w. |
| 22 | func New(w io.Writer) *Writer { |
nothing calls this directly
no outgoing calls
no test coverage detected