ioutil

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 2 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 Copy

func Copy(maxSize int64, w io.Writer, r io.Reader) error

Copy 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.

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