Skip to content

How to write back config load via viper.Unmarshal(&config)? #1078

Answered by sagikazarmark
hyorigo asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sagikazarmark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants