limitread

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package limitread provides a reader that will error if the limit is ever exceeded

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitRead

type LimitRead struct {
	Reader io.Reader
	Limit  int64
}

func (*LimitRead) Read

func (lr *LimitRead) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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