Integrating Cobra and Viper
In this lesson, you will see the synergy between Cobra and Viper in action using our demo calculator application.
We'll cover the following...
Integrating Cobra and Viper
To make things interesting, we will add two integers that will cause an overflow and see how playing with the configuration and command-line flags influences the result.
First, we will add a configuration file called config.toml with a key called check
set to false
:
check = false
The main ...