mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 21:51:00 +00:00
Change key format
key format : ${ENV_PART||defaultValue} or ${ENV_PART}
This commit is contained in:
@ -110,7 +110,7 @@ func ReadYmlReader(path string) (cnf map[string]interface{}, err error) {
|
||||
log.Println("Not a Map? >> ", string(buf), data)
|
||||
cnf = nil
|
||||
}
|
||||
cnf = config.ChooseRealValueForMap(cnf)
|
||||
cnf = config.ExpandValueEnvForMap(cnf)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user