1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 08:00:40 +00:00

Upgrade toml version

This commit is contained in:
Ming Deng
2020-10-14 00:24:22 +08:00
parent ccf873fa8b
commit 3fc21ae6ec
6 changed files with 20 additions and 5 deletions

View File

@ -432,6 +432,10 @@ func newAppConfig(appConfigProvider, appConfigPath string) (*beegoAppConfig, err
return &beegoAppConfig{innerConfig: ac}, nil
}
func (b *beegoAppConfig) Unmarshaler(prefix string, obj interface{}, opt ...config.DecodeOption) error {
return b.innerConfig.Unmarshaler(prefix, obj, opt...)
}
func (b *beegoAppConfig) Set(key, val string) error {
if err := b.innerConfig.Set(BConfig.RunMode+"::"+key, val); err != nil {
return b.innerConfig.Set(key, val)