Codebase list golang-github-vbauerster-mpb / d4f594c
no need for counterUnit type Vladimir Bauer 8 years ago
2 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2626 unitKiB
2727 unitKB
2828 )
29
30 type counterUnit uint
3129
3230 type CounterKiB int64
3331
144144 return counters(pairFormat, unitKB, width, conf)
145145 }
146146
147 func counters(pairFormat string, unit counterUnit, width, conf int) DecoratorFunc {
147 func counters(pairFormat string, unit, width, conf int) DecoratorFunc {
148148 format := "%%"
149149 if (conf & DidentRight) != 0 {
150150 format += "-"