Be aware that viper isn't thread safe. You'd still have to copy config by value and then put a mutex on that, then handle reads and writes separately.
https://github.com/spf13/viper#is-it-safe-to-concurrently-re...
https://github.com/spf13/viper#is-it-safe-to-concurrently-re...
No comments yet.