Config Path Priority #1191
-
Is there an order of priority for multiple config paths? I'm wondering if I can rely on viper to always prefer the config file found in
|
Beta Was this translation helpful? Give feedback.
Answered by
sagikazarmark
Aug 24, 2021
Replies: 1 comment
-
Viper traverses the list of config paths in the order they are added. If it finds a config file, it stops searching. Lines 2130 to 2135 in cf6565f |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sagikazarmark
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Viper traverses the list of config paths in the order they are added. If it finds a config file, it stops searching.
viper/viper.go
Lines 2130 to 2135 in cf6565f