Fix ini Unmarshall method

This commit is contained in:
Ming Deng 2020-10-19 21:04:45 +08:00
parent 140a4b90a3
commit 93bdf97068
1 changed files with 1 additions and 1 deletions

View File

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