README ¶ multiwriter Concurrent writer that duplicates its writes to all the provided writers, similar to the Unix tee(1) command. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func New(writers ...io.Writer) io.Writer type MultiWriter func (self *MultiWriter) Append(writers ...io.Writer) func (self *MultiWriter) Len() int func (self *MultiWriter) Remove(writers ...io.Writer) func (self *MultiWriter) Write(p []byte) (n int, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(writers ...io.Writer) io.Writer New return a MultiWriter Types ¶ type MultiWriter ¶ type MultiWriter struct { sync.RWMutex // contains filtered or unexported fields } func (*MultiWriter) Append ¶ func (self *MultiWriter) Append(writers ...io.Writer) Append writer func (*MultiWriter) Len ¶ func (self *MultiWriter) Len() int Len of writers func (*MultiWriter) Remove ¶ func (self *MultiWriter) Remove(writers ...io.Writer) Remove writer func (*MultiWriter) Write ¶ func (self *MultiWriter) Write(p []byte) (n int, err error) Write implements io.Writer Source Files ¶ View all Source files multiwriter.go Directories ¶ Show internal Expand all Path Synopsis example new Click to show internal directories. Click to hide internal directories.