wfilter

package
v0.0.0-...-8b1022e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

package wfilter provides facilities for adding filtering to io.Writer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinePrepender

func LinePrepender(w io.Writer, prepend Prepend) io.Writer

LinePrepender creates an io.Writer that prepends to each line by calling the given prepend function. Prepend can write whatever it wants. It should return the bytes written and any error encountered.

func SimplePrepender

func SimplePrepender(w io.Writer, prepend Prepend) io.Writer

SimplePrepender creates an io.Writer that prepends by calling the given prepend function. Prepend can write whatever it wants. It should return the bytes written and any error encountered.

Types

type Prepend

type Prepend func(w io.Writer) (int, error)

Jump to

Keyboard shortcuts

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