Codebase list golang-github-vbauerster-mpb / 64a9f46
refactor: decoratorFuncType to decoratorOperation Vladimir Bauer 9 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
55 "time"
66 )
77
8 type decoratorFuncType uint
8 type decoratorOperation uint
99
1010 const (
11 decAppend decoratorFuncType = iota
11 decAppend decoratorOperation = iota
1212 decPrepend
1313 decAppendZero
1414 decPrependZero
1818 type DecoratorFunc func(s *Statistics, myWidth chan<- int, maxWidth <-chan int) string
1919
2020 type decorator struct {
21 kind decoratorFuncType
21 kind decoratorOperation
2222 f DecoratorFunc
2323 }
2424