is possible to use tag 'env' in Unmarshal() operation to decode environment vars? #1127
-
example:
cfg.Host should contains the value of the environment variable DB_HOST |
Beta Was this translation helpful? Give feedback.
Answered by
sagikazarmark
May 1, 2021
Replies: 1 comment
-
No, Viper doesn't support auto-configuration via tags and that's not something we are looking at. |
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
No, Viper doesn't support auto-configuration via tags and that's not something we are looking at.