1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 20:10:50 +00:00
This commit is contained in:
astaxie 2013-12-07 14:47:20 +08:00
parent 48ad0202bf
commit 35d15b8977

View File

@ -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 {