diff --git a/decor/decorator.go b/decor/decorator.go index 34b2837..5c0d168 100644 --- a/decor/decorator.go +++ b/decor/decorator.go @@ -71,7 +71,7 @@ // Configurator interface. type Configurator interface { GetConf() WC - SetConf(*WC) + SetConf(WC) } // Wrapper interface. @@ -168,6 +168,6 @@ } // SetConf is implementation of Configurator interface. -func (wc *WC) SetConf(conf *WC) { +func (wc *WC) SetConf(conf WC) { *wc = conf.Init() }