We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey,
I think it would be nice to be able to set the app_root from environment variables like this:
app_root
app_root: "$GOPATH/src/$APP_PATH"
It should be pretty easy to implement this, there just would need to be a call to os.ExpandEnv(c.AppRoot) at the end of the Load function. E.g.:
os.ExpandEnv(c.AppRoot)
func (c *Configuration) Load(path string) error { data, err := ioutil.ReadFile(path) if err != nil { return err } err = yaml.Unmarshal(data, c) if err != nil { return err } c.AppRoot = os.ExpandEnv(c.AppRoot) return err }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey,
I think it would be nice to be able to set the
app_root
from environment variables like this:It should be pretty easy to implement this, there just would need to be a call to
os.ExpandEnv(c.AppRoot)
at the end of the Load function. E.g.:The text was updated successfully, but these errors were encountered: