I have a yaml config file which has all the settings for my program. For example:
something:
enabled: true
I am using https://github.com/spf13/viper to get the value of an item:
viper.GetBool("something.enabled")
But I was wondering if there is a way to directly change the value of "something.enabled" to "false" using viper? The changes will apply on the config file as well so it will become:
something:
enabled: false