hookreader

package
v0.0.0-...-373b593 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package hookreader hooks additional reader in the source stream. It is useful for making progress bars. Second reader is appropriately notified about the exact number of bytes read from the primary source on each Read operation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHook

func NewHook(source, hook io.Reader) io.Reader

NewHook returns a io.Reader which implements hookReader that reports the data read from the source to the hook.

Types

This section is empty.

Jump to

Keyboard shortcuts

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