diff --git a/decor/decorators.go b/decor/decorators.go index 0ec67d9..f88c6fb 100644 --- a/decor/decorators.go +++ b/decor/decorators.go @@ -51,6 +51,9 @@ TimeElapsed time.Duration } +// Decorator is an interface with one method: +// Decor(st *Statistics, widthAccumulator chan<- int, widthDistributor <-chan int) string +// All decorators in this package implement this interface. type Decorator interface { Decor(*Statistics, chan<- int, <-chan int) string }