Effortless Hot Reloading in Golang: Harnessing the Power of Viper
fsnotify, and Callback Functions for Dynamic Configuration Updates
6 min readMay 7, 2023
In this post, we’ll create a simple HTTP server that serves a configurable welcome message. The server will hot-reload the configuration when the YAML file is changed. We use the following concepts: push mechanism for change emitting and…