Main returns the main Options if this is a child Options. If this is the main Options, it returns itself.
()
| 33 | // Main returns the main Options if this is a child Options. |
| 34 | // If this is the main Options, it returns itself. |
| 35 | func (o *Options) Main() *Options { |
| 36 | if o.main == nil { |
| 37 | return o |
| 38 | } |
| 39 | |
| 40 | return o.main |
| 41 | } |
| 42 | |
| 43 | // Child returns the child Options if any. |
| 44 | func (o *Options) Child() *Options { |
no outgoing calls
no test coverage detected