1. gotamer
  2. Untitled project
  3. gowatch

Overview

GoTamer gowatch

GoTamer gowatch is a fork of bitbucket.org/jzs/buildwatch with some enhancements

It watches your dev folder for modified files, and if a file changes it restarts the process.

  • gowatch -test will run go test on the folder
  • gowatch -build will run go build on the folder
  • gowatch -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]

Important Note:

[program_name] must be the executable file generated by either

  • 'go build' or
  • 'gowatch -build'

Not the '.go' source file!!! The executable / [program_name] gets deleted and rebuild!!!