sync README with actual examples
Vladimir Bauer
9 years ago
| 80 | 80 | // if you still need p.AddBar() here and maintain ordering, use |
| 81 | 81 | // (*mpb.Progress).BeforeRenderFunc(f mpb.BeforeRender) |
| 82 | 82 | for i := 0; i < 100; i++ { |
| 83 | time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond) | |
| 83 | 84 | bar.Incr(1) |
| 84 | time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond) | |
| 85 | 85 | } |
| 86 | 86 | }() |
| 87 | 87 | } |