1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-02 08:53:27 +00:00

Merge pull request #4274 from flycash/loadCfg

Fix ini Unmarshall method
This commit is contained in:
Ming Deng 2020-10-19 21:51:37 +08:00 committed by GitHub
commit 022ad862ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -511,7 +511,7 @@ func (c *IniConfigContainer) Unmarshaler(prefix string, obj interface{}, opt ...
if len(prefix) > 0 { if len(prefix) > 0 {
return errors.New("unsupported prefix params") return errors.New("unsupported prefix params")
} }
return mapstructure.Decode(c.data, opt) return mapstructure.Decode(c.data, obj)
} }
func init() { func init() {