Перейти к содержимому

Amazing Golang configuration with Viper

Cloud Native Skunkworks

0:00 / 0:00

Amazing Golang configuration with Viper

11 705 просмотров · 4 года назад
Cloud Native Skunkworks
6,52 тыс. подписчиков
11 705 просмотров · 4 года назад
So you watched how to build beautiful Golang CLI with Cobra? (    • How to write beautiful Golang CLI   ) 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-skunk... 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