Documentation ¶
Overview ¶
Package multi implements a threadsafe writer interface that multiplies its input to a map of writers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapWriter ¶
type MapWriter interface { Write(p []byte) (int, error) Add(w io.Writer) (size int) Remove(w io.Writer) (size int) Size() int }
MapWriter is an interface to write to a map of Writers. Writers can be added and removed with the Add and Remove methods, while the Size method returns the current map size.
Click to show internal directories.
Click to hide internal directories.