simple example update
Vladimir Bauer
9 years ago
| 26 | 26 | // if you still need p.AddBar() here and maintain ordering, use |
| 27 | 27 | // (*mpb.Progress).BeforeRenderFunc(f mpb.BeforeRender) |
| 28 | 28 | for i := 0; i < 100; i++ { |
| 29 | time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond) | |
| 29 | 30 | bar.Incr(1) |
| 30 | time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond) | |
| 31 | 31 | } |
| 32 | 32 | }() |
| 33 | 33 | } |