diff --git a/decor/decorator.go b/decor/decorator.go index e4fd714..2fe40ae 100644 --- a/decor/decorator.go +++ b/decor/decorator.go @@ -96,6 +96,7 @@ // WC is a struct with two public fields W and C, both of int type. // W represents width and C represents bit set of width related config. +// A decorator should embed WC, in order to become Syncable. type WC struct { W int C int @@ -132,6 +133,7 @@ } } +// Syncable is implementation of Syncable interface. func (wc *WC) Syncable() (bool, chan int) { return (wc.C & DSyncWidth) != 0, wc.wsync }