Use CompileDaemon for Go development
masterCompileDaemon watches your .go files in a directory and invokes go build whenever a file changes.
Basic Usage
To run with default settings in the current working directory:
CompileDaemonRun a command after a successful build
To automatically run your program (and restart it) every time it builds, use the -command flag:
CompileDaemon -command="./MyProgram -my-options"Exclude directories and files
To prevent the daemon from watching specific directories (like .git) or files (like temporary editor files), use -exclude-dir and -exclude:
CompileDaemon -exclude-dir=.git -exclude=".#*"Monitor specific file types
To include files other than the default .go and .c files, use the -include flag with glob patterns:
CompileDaemon -include=Makefile -include="*.less" -include="*.tmpl"CompileDaemon -command="./MyProgram -my-options"