Commit 35d15b89 authored by astaxie's avatar astaxie

fix #350

parent 48ad0202
......@@ -33,7 +33,8 @@ func Register(name string, adapter Config) {
adapters[name] = adapter
}
// config need to be correct JSON as string: {"interval":360}
// adapterNamer is ini/json/xml/yaml
// filename is the config file path
func NewConfig(adapterName, fileaname string) (ConfigContainer, error) {
adapter, ok := adapters[adapterName]
if !ok {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment