Reflex for go: https://github.com/cespare/reflex
I have been using reflex https://github.com/cespare/reflex for the same thing in some of our docker projects
entr is written in C, watchexec is written in Rust.
There's another one that I've used that is written in go: https://github.com/cespare/reflex
I am inclined to use watchexec next time I need one, because like go, I can read it more easily than c, but also because I looked at the web page and GitHub repo and it seems worth trying. For instance, it shows how to use it as a library instead of just as a command-line tool. https://watchexec.github.io/
The best tool I’ve found for this job is reflex[1]. It’s easy to setup, Go agnostic, very « UNIX » in its philosophy, doesn’t get in your way with its own logs, and just works.
Before that I used realize but it has the bad behavior of always adding it’s own prefix to the logs, which sucks.
I use a similar tool called reflex: https://github.com/cespare/reflex
I would love to see Go have first class support for watch/hot reload while developing
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.
https://github.com/cespare/reflex works well too.
When I edit graphviz, I usually watch my source file(s) with reflex [1] to re-generate the output image, and use an image viewer with auto-reloading support like sxiv [2]. Works really well for me!