ioutils

package
v0.2.2-0...-0a6dbcb Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyNFull

func CopyNFull(dst io.Writer, src io.Reader, n int64) (int64, error)

CopyNFull does the same as io.CopyN, but it returns io.ErrUnexpectedEOF if CopyN returns io.EOF and the number of bytes written greater than zero.

func NewCountingReader

func NewCountingReader(reader io.Reader, count *int64) io.ReadCloser

NewCountingReader wraps the given reader in a reader that ensures the given count variable is atomically updated whenever data is read.

Types

This section is empty.

Jump to

Keyboard shortcuts

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