Codebase list golang-github-vbauerster-mpb / b14ba58
extend proxy reader to ReadCloser Vladimir Bauer 7 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
145145 }
146146
147147 // ProxyReader wraps r with metrics required for progress tracking.
148 func (b *Bar) ProxyReader(r io.Reader) io.Reader {
148 func (b *Bar) ProxyReader(r io.Reader) io.ReadCloser {
149149 if r == nil {
150150 panic("expect io.Reader, got nil")
151151 }