SetConf by value
Vladimir Bauer
6 years ago
| 70 | 70 | // Configurator interface. |
| 71 | 71 | type Configurator interface { |
| 72 | 72 | GetConf() WC |
| 73 | SetConf(*WC) | |
| 73 | SetConf(WC) | |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | // Wrapper interface. |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | // SetConf is implementation of Configurator interface. |
| 170 | func (wc *WC) SetConf(conf *WC) { | |
| 170 | func (wc *WC) SetConf(conf WC) { | |
| 171 | 171 | *wc = conf.Init() |
| 172 | 172 | } |