Codebase list golang-github-vbauerster-mpb / e7b0480
refactor: singleBar Vladimir Bauer 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2020 p.RefreshRate(120 * time.Millisecond)
2121
2222 // Add a bar. You're not limited to just one bar, add many if you need.
23 bar := p.AddBar(100).PrependName("Single Bar:", 0).AppendPercentage()
23 bar := p.AddBar(100).PrependName("Single Bar:", 0, 0).AppendPercentage(5, 0)
2424
2525 for i := 0; i < 100; i++ {
2626 bar.Incr(1) // increment progress bar