Comment From: olebedev
@train860 sure, take a look https://medium.com/@olebedev/live-code-reloading-for-golang-web-projects-in-19-lines-8b2e8777b1ea
Comment From: train860
thank you!
Comment From: roma86
@firetrain there is an simpler way https://github.com/pilu/fresh
Comment From: cosmtrek
I write a tool air based on fresh, please have a try~
Comment From: chanhz
https://github.com/silenceper/gowatch
Comment From: AgentCosmic
I ended up writing my own tool because none of the above worked for me. xnotify will also let you auto test your app without needing to install another tool. https://github.com/AgentCosmic/xnotify
Comment From: jeanlambert17
You could use nodemon, install it globally and run nodemon --exec go run main.go --signal SIGTERM
Comment From: lissdy
https://github.com/codegangsta/gin is helpful.
Comment From: ghost
You could use nodemon, install it globally and run
nodemon --exec go run main.go --signal SIGTERM
To use Nodemon users will have to install Node.js, NPM and others just to use nodemon. I would recommend to use fresh, air or gin directly.
Nodemon would make your "getting started", "contributing", or "building" section too much complex.
Comment From: stairclimber
@train860 sure, take a look https://medium.com/@olebedev/live-code-reloading-for-golang-web-projects-in-19-lines-8b2e8777b1ea
Is this HOT reload? I don't think so...
Comment From: mpmcintyre
I made this for one of my projects https://github.com/MPMcIntyre/go-again/
Hopefully its what you need