Codebase list golang-github-vbauerster-mpb / 123a5a7
refactor: io/multiple example Vladimir Bauer 9 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5959
6060 // create bar with appropriate decorators
6161 bar := p.AddBar(size).
62 PrependName(name, len(name)).
63 PrependCounters(mpb.UnitBytes, 20).
64 AppendETA(-6)
62 PrependName(name, 0, 0).
63 PrependCounters(mpb.UnitBytes, 18, mpb.DwidthSync|mpb.DextraSpace).
64 AppendETA(5, mpb.DwidthSync)
65
6566 // create proxy reader
6667 reader := bar.ProxyReader(resp.Body)
6768 // and copy from reader