Skip to content

Commit

Permalink
Merge pull request #54 from egorse/master
Browse files Browse the repository at this point in the history
The value expand fallback to actual ENV values
  • Loading branch information
joho committed Apr 5, 2018
2 parents 6bb0851 + 8ad714e commit 1709ab1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions godotenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1709ab1

Please sign in to comment.