gowatch -test
will run go test
on the foldergowatch -build
will run go build
on the foldergowatch -run [program_name]
will run go build
and then it will execute [program_name]
If a file changes while running lets say gowatch -run [program_name]
it will
kill [program_name]
, run gowatch -build
on the folder, and then restart [program_name]