Skip to content

Commit 1709ab1

Browse files
authored
Merge pull request #54 from egorse/master
The value expand fallback to actual ENV values
2 parents 6bb0851 + 8ad714e commit 1709ab1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

godotenv.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ func parseValue(value string, envMap map[string]string) string {
296296
if val, ok := envMap[key]; ok {
297297
return val
298298
}
299+
if val, ok := os.LookupEnv(key); ok {
300+
return val
301+
}
299302
return ""
300303
})
301304
return value

0 commit comments

Comments
 (0)