How to write back config load via viper.Unmarshal(&config)
?
#1078
-
Usually, we change the value with What about the config load via |
Beta Was this translation helpful? Give feedback.
Answered by
sagikazarmark
Feb 15, 2021
Replies: 1 comment
-
It's not currently possible at the moment and I doubt this will ever be a feature. |
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
It's not currently possible at the moment and I doubt this will ever be a feature.
WriteConfig
is not supposed to be used as a means to save the configuration changes, rather to dump a state so you can create eg. a default config file.