io

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitedWriter

type LimitedWriter struct {
	W io.Writer
	N int64
}

LimitedWriter is similar to io.LimitedReader; it writes to W but limits the amount of data written to just N bytes. Each subsequent call to Write() will return a nil error and a count of 0.

func (*LimitedWriter) Write

func (l *LimitedWriter) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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