uiprogress
uiprogress copied to clipboard
First progress bar is too long
Doing something pretty simple here and I'm not sure why the display is wrong.
[--------------------------------------------------------------------] 38/3805-------] 0/3805
uiprogress.Start()
bar := uiprogress.AddBar(filesCount)
bar.AppendFunc(func(b *uiprogress.Bar) string {
return fmt.Sprintf("%d/%d", b.Current(), b.Total)
})
for _, file := range files {
//process
bar.Incr()
}