mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 18:41:00 +00:00
Change key format
key format : ${ENV_PART||defaultValue} or ${ENV_PART}
This commit is contained in:
@ -69,7 +69,7 @@ func (xc *Config) Parse(filename string) (config.Configer, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
x.data = config.ChooseRealValueForMap(d["config"].(map[string]interface{}))
|
||||
x.data = config.ExpandValueEnvForMap(d["config"].(map[string]interface{}))
|
||||
return x, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user