copy

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoTTY bool

NoTTY turns the progress meters off

Functions

func WithProgress

func WithProgress(writer io.Writer, reader io.Reader, 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