ProgressBarProxyReader wraps a progress bar in a ProxyReader interface.
| 8 | |
| 9 | // ProgressBarProxyReader wraps a progress bar in a ProxyReader interface. |
| 10 | type ProgressBarProxyReader struct { |
| 11 | writer io.Writer |
| 12 | bar *pb.ProgressBar |
| 13 | } |
| 14 | |
| 15 | func (p ProgressBarProxyReader) Wrap(reader io.Reader) io.ReadCloser { |
| 16 | return p.bar.NewProxyReader(reader) |
nothing calls this directly
no outgoing calls
no test coverage detected