merge implements Configurator
Vladimir Bauer
6 years ago
| 22 | 22 | wc: decorator.GetConf(), |
| 23 | 23 | placeHolders: make([]*placeHolderDecorator, len(placeholders)), |
| 24 | 24 | } |
| 25 | decorator.SetConf(&WC{}) | |
| 25 | decorator.SetConf(WC{}) | |
| 26 | 26 | for i, wc := range placeholders { |
| 27 | 27 | if (wc.C & DSyncWidth) == 0 { |
| 28 | 28 | return decorator |
| 39 | 39 | Decorator |
| 40 | 40 | wc WC |
| 41 | 41 | 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() | |
| 42 | 50 | } |
| 43 | 51 | |
| 44 | 52 | func (d *mergeDecorator) MergeUnwrap() []Decorator { |