diff --git a/decorators.go b/decorators.go index 6c3fbaf..c25c77d 100644 --- a/decorators.go +++ b/decorators.go @@ -6,10 +6,10 @@ "time" ) -type decoratorFuncType uint +type decoratorOperation uint const ( - decAppend decoratorFuncType = iota + decAppend decoratorOperation = iota decPrepend decAppendZero decPrependZero @@ -19,7 +19,7 @@ type DecoratorFunc func(s *Statistics, myWidth chan<- int, maxWidth <-chan int) string type decorator struct { - kind decoratorFuncType + kind decoratorOperation f DecoratorFunc }