Codebase list golang-github-vbauerster-mpb / 994c170
BarFillerTrim same as TrimSpace but for better discoverability Vladimir Bauer 5 years ago
1 changed file(s) with 11 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
122122 }
123123 }
124124
125 // TrimSpace trims bar's edge spaces.
125 // BarFillerTrim bar filler is rendered with leading and trailing space
126 // like ' [===] ' by default. With this option leading and trailing
127 // space will be removed.
128 func BarFillerTrim() BarOption {
129 return func(s *bState) {
130 s.trimSpace = true
131 }
132 }
133
134 // TrimSpace is an alias to BarFillerTrim.
126135 func TrimSpace() BarOption {
127 return func(s *bState) {
128 s.trimSpace = true
129 }
136 return BarFillerTrim()
130137 }
131138
132139 // BarStyle overrides mpb.DefaultBarStyle which is "[=>-]<+".