Codebase list golang-github-vbauerster-mpb / 1c0b9ae
refactor some examples Vladimir Bauer 8 years ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1616 func main() {
1717 doneWg := new(sync.WaitGroup)
1818 p := mpb.New(mpb.WithWidth(64), mpb.WithWaitGroup(doneWg))
19 numBars := 3
19 numBars := 4
2020
2121 var bars []*mpb.Bar
2222 var downloadWgg []*sync.WaitGroup
2525 // Display our static name with one space on the right
2626 decor.StaticName(name, len(name)+1, decor.DidentRight),
2727 // ETA decorator with width reservation of 3 runes
28 decor.ETA(3, 0),
28 // decor.ETA(3, 0),
29 decor.OnComplete(decor.ETA(4, 0), "done", 0, 0),
2930 ),
3031 mpb.AppendDecorators(
3132 // Percentage decorator with width reservation of 5 runes