copy

package
v0.0.0-...-67d9101 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOut bool

NoOut turns copy output off entirely

View Source
var NoTTY bool

NoTTY turns the progress meters off

Functions

func WithProgress

func WithProgress(writer io.Writer, reader io.Reader, logger *logger.Logger, prefix string) error

WithProgress implements io.Copy with a buffered reader, then measures progress throughout the copy process. The buffer is set at a reasonable size for reasonable performance. On error, if io.EOF is not returned then the error is returned. Otherwise, it is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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