Go Application Configuration with Viper | Config with JSON
In this video tutorial we are going to look at the Viper library that allows for Go application configuration over a .env file or the standard environment variables. We can even config our apps with JSON or YAML!
We will walk through how to set up and read in a JSON file for configuration. We will also see how we can use viper to write to our config file at runtime and see how we can watch and see if the file was changed.
More Information on the mapstructrure field: https://github.com/mitchellh/mapstructure
If you wanna support my channel, you can buy me a coffee: āļø https://www.buymeacoffee.com/nerdcademy Coffee make the code go!!!
All code found in this video will be at: š» https://github.com/NerdCademyDev/golang
š¤ Let me know if you have any issues!
ā”ļø What else would you like me to cover?
š Always Keep Learning!
#nerdcademy #golang #viper ... https://www.youtube.com/watch?v=r9Qvr40H4eE
37493035 Bytes