multiwriter

package module
v0.0.0-...-2e0dd11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2018 License: BSD-3-Clause Imports: 2 Imported by: 1

README

CircleCI Build Status codecov

multiwriter

Concurrent writer that duplicates its writes to all the provided writers, similar to the Unix tee(1) command.

Documentation

Index

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

Directories

Path Synopsis
new

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL