refactor: io/single example
Vladimir Bauer
9 years ago
| 36 | 36 |
|
| 37 | 37 |
p := mpb.New(nil).SetWidth(64)
|
| 38 | 38 |
|
| 39 | |
bar := p.AddBar(size).PrependCounters(mpb.UnitBytes, 20).AppendETA(-6)
|
|
39 |
bar := p.AddBar(size).
|
|
40 |
PrependCounters(mpb.UnitBytes, 18, 0).
|
|
41 |
AppendETA(3, 0)
|
| 40 | 42 |
|
| 41 | 43 |
// create proxy reader
|
| 42 | 44 |
reader := bar.ProxyReader(resp.Body)
|