Discover Packages
github.com/EyciaZhou/rainbow.go
PassThru
package
Version:
v0.0.0-...-e49ead0
Opens a new window with list of versions in this module.
Published: Jan 31, 2016
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
const (
KB ByteSize = 1 << (10 * iota )
MB
GB
TB
PB
EB
ZB
YB
)
PassThru wraps an existing io.Reader.
It simply forwards the Read() call, while displaying
the results from individual calls to it.
Read 'overrides' the underlying io.Reader's Read method.
This is the one that will be called by io.Copy(). We simply
use it to keep track of byte counts and then forward the call.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.