stream

package
v0.0.0-...-a6c55ee Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NopCloser

func NopCloser(w io.Writer) io.WriteCloser

Types

type PrefixWriter

type PrefixWriter struct {
	io.Writer
	Prefix func() []byte
	// contains filtered or unexported fields
}

func NewPrefixWriter

func NewPrefixWriter(writer io.Writer, prefix func() []byte) *PrefixWriter

func (*PrefixWriter) Write

func (w *PrefixWriter) Write(out []byte) (int, error)

type SubstituteWriter

type SubstituteWriter struct {
	io.Writer
	Substitutions map[string]interface{}
}

func NewSubstituteWriter

func NewSubstituteWriter(writer io.Writer) *SubstituteWriter

func (*SubstituteWriter) Filter

func (w *SubstituteWriter) Filter(writer io.Writer) *SubstituteWriter

func (*SubstituteWriter) Write

func (w *SubstituteWriter) Write(out []byte) (int, error)

Jump to

Keyboard shortcuts

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