Codebase list golang-github-vbauerster-mpb / 733135b
refactor: io/single example Vladimir Bauer 9 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3636
3737 p := mpb.New(nil).SetWidth(64)
3838
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)
4042
4143 // create proxy reader
4244 reader := bar.ProxyReader(resp.Body)