ioutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ioutil provides extensions to the stdlib ioutil package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// DiscardReader is an io.Reader in which all calls return 0 and io.EOF.
	DiscardReader io.Reader = discardReader{}

	// ErrShortWrite is the errur returned from WriteAll if the amount written is less
	// than the input data length.
	ErrShortWrite = errs.NewInternal("wrote less bytes than requested")
)

Functions

func NopWriteCloser

func NopWriteCloser(writer io.Writer) io.WriteCloser

NopWriteCloser returns an io.WriteCloser with a no-op Close method wrapping the provided io.Writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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