Codebase list golang-github-vbauerster-mpb / 203cc7c
clean up Vladimir Bauer 7 years ago
1 changed file(s) with 0 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
119119 }
120120 }
121121
122 // AlignLeft align spinner on left, default.
123 // Applicable fo spinner bar type only.
124 // func AlignLeft() BarOption {
125 // return func(s *bState) {
126 // if bf, ok := s.filler.(*spinnerFiller); ok {
127 // bf.alignment = alignLeft
128 // }
129 // }
130 // }
131
132 // AlignMiddle align spinner on the middle.
133 // Applicable fo spinner bar type only.
134 // func AlignMiddle() BarOption {
135 // return func(s *bState) {
136 // if bf, ok := s.filler.(*spinnerFiller); ok {
137 // bf.alignment = alignMiddle
138 // }
139 // }
140 // }
141
142 // AlignRight align spinner on right.
143 // Applicable fo spinner bar type only.
144 // func AlignRight() BarOption {
145 // return func(s *bState) {
146 // if bf, ok := s.filler.(*spinnerFiller); ok {
147 // bf.alignment = alignRight
148 // }
149 // }
150 // }
151
152122 func TrimSpace() BarOption {
153123 return func(s *bState) {
154124 s.trimSpace = true