Another option, if you have nodejs installed on your machine
install nodemon with -g npm i -g nodemon
go to your code dir and run:
nodemon --watch './**/*.go' --signal SIGTERM --exec 'go' run cmd/MyProgram/main.go
This will send SIGTERM every time any .go
files changes and will run go run cmd/Myprogram/main.go
Fully cross platform.