mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 16:00:59 +00:00
fix typo
This commit is contained in:
parent
a89f14d80d
commit
cbb6591bdb
@ -88,12 +88,12 @@ func Register(name string, adapter Config) {
|
|||||||
|
|
||||||
// adapterName is ini/json/xml/yaml.
|
// adapterName is ini/json/xml/yaml.
|
||||||
// filename is the config file path.
|
// filename is the config file path.
|
||||||
func NewConfig(adapterName, fileaname string) (ConfigContainer, error) {
|
func NewConfig(adapterName, filename string) (ConfigContainer, error) {
|
||||||
adapter, ok := adapters[adapterName]
|
adapter, ok := adapters[adapterName]
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, fmt.Errorf("config: unknown adaptername %q (forgotten import?)", adapterName)
|
return nil, fmt.Errorf("config: unknown adaptername %q (forgotten import?)", adapterName)
|
||||||
}
|
}
|
||||||
return adapter.Parse(fileaname)
|
return adapter.Parse(filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
// adapterName is ini/json/xml/yaml.
|
// adapterName is ini/json/xml/yaml.
|
||||||
|
Loading…
Reference in New Issue
Block a user