Introducing Reloader

I’ve been doing a lot of golang development lately, and it has been a lot of fun. I’ve really enjoyed the simplicity of the language, and having a compiler and the error checking it provides.

One thing I’ve missed from Rails development, though, is automatic reloading, especially when doing web development. I found a few different solutions for Go, like gin, but many of them took over the compilation process any time a file is saved, and that didn’t feel quite right for me. After a little bit of thinking I decided I could solve the problem pretty simply, and created Reloader.

Reloader is the simplest possible solution to the problem that I could find. Pretend you’ve written an app that generates a binary named my_web_server. To run it in reloader, you simply append reloader to the beginning of your command line:

reloader ./my_web_server

Reloader will monitor the executable file for program you’re running and any time it changes due to recompile, Reloader will restart it with the command line you gave it.

I’ve been using Reloader for several months now, and haven’t needed to change it in a while, so I think it’s ready for others to try. You can learn more, including how to install Reloader, in the README.

Originally published at on April 27, 2016.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.