Codebase list golang-github-vbauerster-mpb / 375dd31
Typo fixes. Vladimir Bauer 8 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
6262
6363 // DynamicName to be used, when there is a plan to change the name once or
6464 // several times during progress rendering process. If there're more than one
65 // bar, and you'd like to synchronize column width, conf param shauld have
65 // bar, and you'd like to synchronize column width, conf param should have
6666 // DwidthSync bit set.
6767 func DynamicName(nameFn func(*Statistics) string, minWidth int, conf byte) DecoratorFunc {
6868 format := "%%"
8888 // Accepts pairFormat string, something like "%s / %s" to be used in
8989 // fmt.Sprintf(pairFormat, current, total) and one of (Unit_KiB/Unit_kB)
9090 // constant. If there're more than one bar, and you'd like to synchronize column
91 // width, conf param shauld have DwidthSync bit set.
91 // width, conf param should have DwidthSync bit set.
9292 func Counters(pairFormat string, unit Units, minWidth int, conf byte) DecoratorFunc {
9393 format := "%%"
9494 if (conf & DidentRight) != 0 {
113113
114114 // ETA provides exponential-weighted-moving-average ETA decorator.
115115 // If there're more than one bar, and you'd like to synchronize column width,
116 // conf param shauld have DwidthSync bit set.
116 // conf param should have DwidthSync bit set.
117117 func ETA(minWidth int, conf byte) DecoratorFunc {
118118 format := "%%"
119119 if (conf & DidentRight) != 0 {
136136
137137 // Elapsed provides elapsed time decorator.
138138 // If there're more than one bar, and you'd like to synchronize column width,
139 // conf param shauld have DwidthSync bit set.
139 // conf param should have DwidthSync bit set.
140140 func Elapsed(minWidth int, conf byte) DecoratorFunc {
141141 format := "%%"
142142 if (conf & DidentRight) != 0 {
159159
160160 // Percentage provides percentage decorator.
161161 // If there're more than one bar, and you'd like to synchronize column width,
162 // conf param shauld have DwidthSync bit set.
162 // conf param should have DwidthSync bit set.
163163 func Percentage(minWidth int, conf byte) DecoratorFunc {
164164 format := "%%"
165165 if (conf & DidentRight) != 0 {