maxreader

package module
v0.0.0-...-0973942 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrReadLimit = errors.New("read limit exceeded")

ErrReadLimit is the interesting error.

Functions

func New

func New(r io.Reader, max int64) io.Reader

New creates a reader which behaves mostly like io.LimitedReader. Its Read method returns an error if the underlying reader produces surplus data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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