Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastWriter ¶
func BroadcastWriter(writers ...io.Writer) io.WriteCloser
BroadcastWriter creates a writer that duplicates its writes to all the provided writers, similar to the Unix tee(1) command.
Each write is written to each listed writer, one at a time. If a listed writer returns an error, that overall write operation continues and the offending writer is dropped from the list.
Only if all writers are dropped, the last error is returned at the end.
Types ¶
Click to show internal directories.
Click to hide internal directories.