Documentation ¶
Overview ¶
Package dio adds dynamic behaviour to the standard io package mutliX types
Package dio adds dynamic behaviour to the standard io package mutliX types ¶
Package dio adds dynamic behaviour to the standard io package mutliX types
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseWriter ¶
type CloseWriter interface {
CloseWrite() error
}
CloseWriter is an interface that implements structs that close input streams to prevent from writing.
type DynamicMultiReader ¶
type DynamicMultiReader interface { io.Reader Add(...io.Reader) Remove(io.Reader) Close() error PropagateEOF(bool) }
DynamicMultiReader adds dynamic add/remove to the base multireader behaviour
func MultiReader ¶
func MultiReader(readers ...io.Reader) DynamicMultiReader
MultiReader returns a Reader that's the logical concatenation of the provided input readers. They're read sequentially. Once all inputs have returned EOF, Read will return EOF. If any of the readers return a non-nil, non-EOF error, Read will return that error.
type DynamicMultiWriter ¶
DynamicMultiWriter adds dynamic add/remove to the base multiwriter behaviour
func MultiWriter ¶
func MultiWriter(writers ...io.Writer) DynamicMultiWriter
MultiWriter extends io.MultiWriter to allow add/remove of writers dynamically without disrupting existing writing