mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 08:40:54 +00:00
fix #350
This commit is contained in:
parent
48ad0202bf
commit
35d15b8977
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user