A WriteSyncer is an io.Writer that can also flush any buffered data. Note that *os.File (and thus, os.Stderr and os.Stdout) implement WriteSyncer.
| 30 | // A WriteSyncer is an io.Writer that can also flush any buffered data. Note |
| 31 | // that *os.File (and thus, os.Stderr and os.Stdout) implement WriteSyncer. |
| 32 | type WriteSyncer interface { |
| 33 | io.Writer |
| 34 | Sync() error |
| 35 | } |
| 36 | |
| 37 | // AddSync converts an io.Writer to a WriteSyncer. It attempts to be |
| 38 | // intelligent: if the concrete type of the io.Writer implements WriteSyncer, |
no outgoing calls
no test coverage detected