PluginConfig retrieves the requested option for the given plugin.
(pluginname, option string)
| 437 | |
| 438 | // PluginConfig retrieves the requested option for the given plugin. |
| 439 | func (c *ConfigFile) PluginConfig(pluginname, option string) (string, bool) { |
| 440 | if c.Plugins == nil { |
| 441 | return "", false |
| 442 | } |
| 443 | pluginConfig, ok := c.Plugins[pluginname] |
| 444 | if !ok { |
| 445 | return "", false |
| 446 | } |
| 447 | value, ok := pluginConfig[option] |
| 448 | return value, ok |
| 449 | } |
| 450 | |
| 451 | // SetPluginConfig sets the option to the given value for the given |
| 452 | // plugin. Passing a value of "" will remove the option. If removing |
no outgoing calls