Compile Daemon for Go

CompileDaemon watches your .go files in a directory and invokes go build if a file changed. Nothing more.

Installation

Examples

In its simplest form, the defaults will do. With the current working directory set to the source directory you can simply…

… and it will recompile your code whenever you save a source file.

If you want it to also run your program each time it builds you might add…

… and it will also keep a copy of your program running. Killing the old one and starting a new one each time you build.

Publikováno v Go