utilize new api
Vladimir Bauer
3 years ago
| 24 | 24 | fmt.Fprintf(w, "Bar id: %d has been completed\n", s.ID) |
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | bar := p.AddBar(int64(total), mpb.BarExtender(mpb.BarFillerFunc(efn)), | |
| 27 | bar := p.AddBar(int64(total), | |
| 28 | mpb.BarExtender(mpb.BarFillerFunc(efn), false), | |
| 28 | 29 | mpb.PrependDecorators( |
| 29 | 30 | // simple name decorator |
| 30 | 31 | decor.Name(name), |