eaigner / hood

Database agnostic ORM for Go
MIT License
708 stars 52 forks source link

added a configuration file hack to allow to read environment variables #68

Open iansmith opened 11 years ago

iansmith commented 11 years ago

@eaigner

This is a small PR that allows this notation in your configuration file:

${foo} 

This implies that the value found in the environment variable FOO (uppercase) will be substituted. This avoids problems with configuration files (like json.conf) ending up in the git repo when then contain passwords.