Effortless Hot Reloading in Golang: Harnessing the Power of Viper

fsnotify, and Callback Functions for Dynamic Configuration Updates

Adam Szpilewicz

--

Photo by Mike van den Bos on Unsplash

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…

--

--

Adam Szpilewicz

Backend software engineer working with golang and python @Rivery (https://rivery.io/). I like writting and reading about code and software engineering.