mirror of https://github.com/joho/godotenv.git
The value expand fallback to actual ENV values
parent
6bb0851667
commit
8ad714e304
|
@ -296,6 +296,9 @@ func parseValue(value string, envMap map[string]string) string {
|
|||
if val, ok := envMap[key]; ok {
|
||||
return val
|
||||
}
|
||||
if val, ok := os.LookupEnv(key); ok {
|
||||
return val
|
||||
}
|
||||
return ""
|
||||
})
|
||||
return value
|
||||
|
|
Loading…
Reference in New Issue