1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-06 16:20:19 +00:00

test the env use GOPATH not GOROOT

This commit is contained in:
ysqi
2016-03-14 19:22:00 +08:00
parent 9c7d95b071
commit 1b04571c0b
5 changed files with 29 additions and 29 deletions

View File

@ -132,7 +132,7 @@ func ChooseRealValueForMap(m map[string]interface{}) map[string]interface{} {
//
// It accept value formats "$$env" , "$$env||" , "$$env||defaultValue" , "defaultvalue".
// Examples:
// v1 := config.ChooseRealValue("$$GOROOT") // return the GOROOT environment variable.
// v1 := config.ChooseRealValue("$$GOPATH") // return the GOPATH environment variable.
// v2 := config.ChooseRealValue("$$GOAsta||/usr/local/go/") // return the default value "/usr/local/go/".
// v3 := config.ChooseRealValue("Astaxie") // return the value "Astaxie".
func ChooseRealValue(value string) (realValue string) {