refactor: decoratorFuncType to decoratorOperation
Vladimir Bauer
9 years ago
| 5 | 5 | "time" |
| 6 | 6 | ) |
| 7 | 7 | |
| 8 | type decoratorFuncType uint | |
| 8 | type decoratorOperation uint | |
| 9 | 9 | |
| 10 | 10 | const ( |
| 11 | decAppend decoratorFuncType = iota | |
| 11 | decAppend decoratorOperation = iota | |
| 12 | 12 | decPrepend |
| 13 | 13 | decAppendZero |
| 14 | 14 | decPrependZero |
| 18 | 18 | type DecoratorFunc func(s *Statistics, myWidth chan<- int, maxWidth <-chan int) string |
| 19 | 19 | |
| 20 | 20 | type decorator struct { |
| 21 | kind decoratorFuncType | |
| 21 | kind decoratorOperation | |
| 22 | 22 | f DecoratorFunc |
| 23 | 23 | } |
| 24 | 24 | |