Discover Packages
github.com/schollz/teoperator
src
download
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: May 19, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Download a file and limit the number of bytes. If the bytes exceed,
it will throw an error and delete the downloaded file.
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.