Codebase list golang-github-vbauerster-mpb / 548c757
SetConf by value Vladimir Bauer 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7070 // Configurator interface.
7171 type Configurator interface {
7272 GetConf() WC
73 SetConf(*WC)
73 SetConf(WC)
7474 }
7575
7676 // Wrapper interface.
167167 }
168168
169169 // SetConf is implementation of Configurator interface.
170 func (wc *WC) SetConf(conf *WC) {
170 func (wc *WC) SetConf(conf WC) {
171171 *wc = conf.Init()
172172 }