ioutil

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTruncatedCopy = errors.New("truncated copy due to too large input")

ErrTruncatedCopy is raised when the copy is larger than expected.

Functions

func LimitCopy added in v2.1.4

func LimitCopy(dst io.Writer, src io.Reader, maxSize uint64) (uint64, error)

LimitCopy uses a buffered CopyN and a hardlimit to stop read from the reader when the maxSize amount of data has been written to the given writer and raise an error.

func NopCloserWriter

func NopCloserWriter(w io.Writer) io.WriteCloser

NopCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.

Types

This section is empty.

Jump to

Keyboard shortcuts

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