Codebase list golang-github-vbauerster-mpb / 97b57a5
Consice interface Vladimir Bauer 8 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5151 }
5252
5353 type Decorator interface {
54 Decor(s *Statistics, widthAccumulator chan<- int, widthDistributor <-chan int) string
54 Decor(*Statistics, chan<- int, <-chan int) string
5555 }
5656
5757 type CompleteMessenger interface {
5959 }
6060
6161 // DecoratorFunc is an adapter for Decorator interface
62 type DecoratorFunc func(s *Statistics, widthAccumulator chan<- int, widthDistributor <-chan int) string
62 type DecoratorFunc func(*Statistics, chan<- int, <-chan int) string
6363
6464 func (f DecoratorFunc) Decor(s *Statistics, widthAccumulator chan<- int, widthDistributor <-chan int) string {
6565 return f(s, widthAccumulator, widthDistributor)