copy

package
Version: v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: Apache-2.0 Imports: 6 Imported by: 6

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.

Source Files

Jump to

Keyboard shortcuts

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