DeleteFromDescendants removes an option by its key from the Options descendants if any.
(key string)
| 161 | |
| 162 | // DeleteFromDescendants removes an option by its key from the Options descendants if any. |
| 163 | func (o *Options) DeleteFromDescendants(key string) { |
| 164 | if o.child == nil { |
| 165 | return |
| 166 | } |
| 167 | |
| 168 | for c := range o.Descendants() { |
| 169 | delete(c.m, key) |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | // CopyValue copies a value from one option key to another. |
| 174 | func (o *Options) CopyValue(fromKey, toKey string) { |