Skip to content

Viper is deleting all comments when viper.Set and viper.WriteConfig is done #1173

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

You must be logged in to vote

Unfortunately, no. It would be quite hard to implement with very minimal benefit.

WriteConfig is not supposed to be used for updating config files. It's more like a tool to dump default configuration.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexMcGopher
Comment options

Answer selected by AlexMcGopher
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