Codebase list golang-github-vbauerster-mpb / e10409e
merge implements Configurator Vladimir Bauer 6 years ago
1 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2222 wc: decorator.GetConf(),
2323 placeHolders: make([]*placeHolderDecorator, len(placeholders)),
2424 }
25 decorator.SetConf(&WC{})
25 decorator.SetConf(WC{})
2626 for i, wc := range placeholders {
2727 if (wc.C & DSyncWidth) == 0 {
2828 return decorator
3939 Decorator
4040 wc WC
4141 placeHolders []*placeHolderDecorator
42 }
43
44 func (d *mergeDecorator) GetConf() WC {
45 return d.wc
46 }
47
48 func (d *mergeDecorator) SetConf(conf WC) {
49 d.wc = conf.Init()
4250 }
4351
4452 func (d *mergeDecorator) MergeUnwrap() []Decorator {