multi

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package multi contains utilities for multiplexing io operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer interface {
	AddWriter(w io.Writer)
	Write(p []byte) (n int, err error)
}

Writer contains a list of io.Writer objects. Its Write method tries to write to all of them, and aggregates the errors (if any of the write call fails).

func NewWriter

func NewWriter(w io.Writer) Writer

NewWriter returns an implementation of the multi.Writer interface

Jump to

Keyboard shortcuts

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