cosmetics
Vladimir Bauer
6 years ago
| 18 | 18 |
|
| 19 | 19 |
for i := 0; i < numBars; i++ {
|
| 20 | 20 |
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) {
|
| 22 | 22 |
if s.Completed {
|
| 23 | 23 |
fmt.Fprintf(w, "Bar id: %d has been completed\n", s.ID)
|
| 24 | 24 |
}
|
| 37 | 37 |
}
|
| 38 | 38 |
|
| 39 | 39 |
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)
|
| 42 | 42 |
w.Write([]byte("\n"))
|
| 43 | 43 |
})
|
| 44 | 44 |
}
|