As an aside, I would love to see Go have first class support for watch/hot reload while developing...! (e.g. go run --watch main.go)
As an aside, I would love to see Go have first class support for watch/hot reload while developing...! (e.g. go run --watch main.go)
Its not first class, but I have been happy using reflex [1] for non-http and gin [2] for http. Combined with Go's fast compile they work as well as a hot reload.
I built https://github.com/superhuman/lrt which tries to solve this problem in a go-like way (no configuration required, minimal log noise, and reliability/simplicity as the primary design goals) for Superhuman.
Modd watches file changes and rebuilds, while Devd enables livereload, letting me make changes in my text editor and then see the rendered changes in the browser, side-by-side, in near real-time.
This is for go web development but I'm pretty sure these two tools are language-agnostic.
watchexec -cr "make && my-server"
[0] https://github.com/watchexec/watchexec