Codebase list golang-github-vbauerster-mpb / 28c623e
Counters doc comment Vladimir Bauer 8 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5959 return DynamicName(nameFn, minWidth, conf)
6060 }
6161
62 // DynamicName to be used, when there is a plan to chane the name once or
62 // DynamicName to be used, when there is a plan to change the name once or
6363 // several times during progress rendering process
6464 func DynamicName(nameFn func(*Statistics) string, minWidth int, conf byte) DecoratorFunc {
6565 format := "%%"
8181 }
8282 }
8383
84 // Counters provides basic counters decorator.
85 // Accepts pairFormat string, something like "%s / %s" to be used in
86 // fmt.Sprintf(pairFormat, current, total) and one of (Unit_KiB/Unit_kB)
87 // constant
8488 func Counters(pairFormat string, unit Units, minWidth int, conf byte) DecoratorFunc {
8589 format := "%%"
8690 if (conf & DidentRight) != 0 {