Codebase list golang-github-vbauerster-mpb / 25079bd
cosmetics Vladimir Bauer 6 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1818
1919 for i := 0; i < numBars; i++ {
2020 name := fmt.Sprintf("Bar#%d:", i)
21 efn := func(w io.Writer, width int, s decor.Statistics) {
21 efn := func(w io.Writer, _ int, s decor.Statistics) {
2222 if s.Completed {
2323 fmt.Fprintf(w, "Bar id: %d has been completed\n", s.ID)
2424 }
3737 }
3838
3939 func nlBarFiller(filler mpb.BarFiller) mpb.BarFiller {
40 return mpb.BarFillerFunc(func(w io.Writer, width int, s decor.Statistics) {
41 filler.Fill(w, width, s)
40 return mpb.BarFillerFunc(func(w io.Writer, reqWidth int, s decor.Statistics) {
41 filler.Fill(w, reqWidth, s)
4242 w.Write([]byte("\n"))
4343 })
4444 }