xxxxxxxxxx
nodemon -V -e .go -w . -x go run <your folder> --count=1 --race -V --signal SIGTERM
xxxxxxxxxx
//installation of nodemon for golang hot reloading
npm install -g nodemon
// command for watching file changes to reload and stop watching on error
// src is the folder where main.go file resides
nodemon --exec go run src/main.go --signal SIGTERM
// command to continue watching the file changes even there are errors in code
nodemon --exec go run src/main.go --signal SIGTERM || exit 1