forked from coop-cloud-mirrors/godotenv
The value expand fallback to actual ENV values
This commit is contained in:
parent
6bb0851667
commit
8ad714e304
@ -296,6 +296,9 @@ func parseValue(value string, envMap map[string]string) string {
|
|||||||
if val, ok := envMap[key]; ok {
|
if val, ok := envMap[key]; ok {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
|
if val, ok := os.LookupEnv(key); ok {
|
||||||
|
return val
|
||||||
|
}
|
||||||
return ""
|
return ""
|
||||||
})
|
})
|
||||||
return value
|
return value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user