Skip to content
New issue

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

What is the priority of loading values? #78

Open
sharonjl opened this issue Jan 11, 2019 · 1 comment
Open

What is the priority of loading values? #78

sharonjl opened this issue Jan 11, 2019 · 1 comment

Comments

@sharonjl
Copy link

In which order does the lib load values? Does the config file override command line flag?

@markx
Copy link

markx commented Jan 29, 2019

I believe it depends on what loader you use.
For the default loader: https://github.com/koding/multiconfig/blob/master/multiconfig.go#L23-L24

If you don't like this default order, you can construct your own loader with whatever order you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants