Codebase list golang-github-vbauerster-mpb / 370fcc4
refactor formatLen Vladimir Bauer 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2121 // WithFormat overrides default bar format "[=>-]"
2222 func WithFormat(format string) ProgressOption {
2323 return func(c *pConf) {
24 if utf8.RuneCountInString(format) == numFmtRunes {
24 if utf8.RuneCountInString(format) == formatLen {
2525 c.format = format
2626 }
2727 }