limitwriter

package
v1.6.5-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package limitwriter provides a writer that only allows a certain number of bytes to be written.

Index

Constants

This section is empty.

Variables

View Source
var ErrMaximumWrite = errors.New("maximum write")

ErrMaximumWrite is returned when all bytes have been written.

Functions

func New

func New(w io.Writer, n int64) io.Writer

New creates a writer that is limited to writing at most n bytes to w. This writer is not thread safe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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