mirror of
https://github.com/astaxie/beego.git
synced 2024-11-21 13:00:54 +00:00
Merge pull request #4274 from flycash/loadCfg
Fix ini Unmarshall method
This commit is contained in:
commit
022ad862ac
@ -511,7 +511,7 @@ func (c *IniConfigContainer) Unmarshaler(prefix string, obj interface{}, opt ...
|
||||
if len(prefix) > 0 {
|
||||
return errors.New("unsupported prefix params")
|
||||
}
|
||||
return mapstructure.Decode(c.data, opt)
|
||||
return mapstructure.Decode(c.data, obj)
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
Loading…
Reference in New Issue
Block a user