Amazing Golang configuration with Viper



Amazing Golang configuration with Viper

Amazing Golang configuration with Viper

So you watched how to build beautiful Golang CLI with Cobra?
( https://youtu.be/SSRIn5DAmyw ) Time to understand how to create a fantastic configuration for it with Viper!

In this video, we look at Viper, how to use it and the key features.

Links:
– https://github.com/spf13/viper
– https://github.com/cloud-native-skunkworks/toolbox-cli-example

Timecodes:
0:00 Introduction
1:00 Setup
1:53 First key/value pair
5:41 Nested values
6:01 A note on the docs
6:56 Modify an existing command
11:21 Writing config
15:59 Environmental overrides
18:54 Conclusion

Comments are closed.