I know AppEngine does this, but I\'m not coding for it.
I tried using Guard
from Ruby world, to listen on changes on .go
files, and execut
You can use nodemon
for this. Simply create a nodemon.json file containing your configuration, files to watch, files to ignore, and command to execute when a file changes. Something like this configuration.
nodemon.json
{
"watch": ["*"],
"ext": "go graphql",
"ignore": ["*gen*.go"],
"exec": "go run scripts/gqlgen.go && (killall -9 server || true ) && go run ./server/server.go"
}
You do require nodejs for this to work.
But its far better then any other tool I've used so far that are go specific.