NewConfigFromFile returns a config struct that is filled with the values from the passed in ini file
(path string)
| 17 | // NewConfigFromFile returns a config struct that is filled with the values |
| 18 | // from the passed in ini file |
| 19 | func NewConfigFromFile(path string) (*Config, error) { |
| 20 | iniFile, err := ini.Load(path) |
| 21 | ret := &Config{ |
| 22 | iniFile: iniFile, |
| 23 | } |
| 24 | |
| 25 | return ret, err |
| 26 | } |
| 27 | |
| 28 | // GetRuleConfig returns a rules.RuleConfig for the given rule. A rule |
| 29 | // corresponds to a section in the config ini file |
no outgoing calls