Codebase list golang-github-vbauerster-mpb / a037933
simple example update Vladimir Bauer 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2626 // if you still need p.AddBar() here and maintain ordering, use
2727 // (*mpb.Progress).BeforeRenderFunc(f mpb.BeforeRender)
2828 for i := 0; i < 100; i++ {
29 time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond)
2930 bar.Incr(1)
30 time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond)
3131 }
3232 }()
3333 }