From 35d15b89771a964311bba83f7217523125254986 Mon Sep 17 00:00:00 2001 From: astaxie Date: Sat, 7 Dec 2013 14:47:20 +0800 Subject: [PATCH] fix #350 --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 0e6a00b8..101bc66d 100644 --- a/config/config.go +++ b/config/config.go @@ -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 {