go source file monitor, which restarts/rebuilds your go package automatically while you are changing it.
The original version didn't kill the child process correctly and it stops when the child process is in infinite loop. This version can kill the child process correctly even in infinite loop.
Also I removed the most of the options because I don't use them and only specify custom command.
go get -u github.com/honteng/gomon
gomon [dir] -- [cmd]
Monitoring With Custom Command:
gomon src -- go run -x server.go # execute go run -x server.go
gomon src -- go build -x package # execute go build -x package
Recursively check the subfolders
gomon src -R -- go run -x server.go
Only watch the mached files with regex
gomon src -m '.*go' -- cmd
Ignore the specific file gomon src -d 'ignore.go' -- cmd
gomon src -d 'ignore.go' -- cmd
- Add configration file support.
- Command queue support.
GoTray http://gotray.extremedev.org/
- Ask Bjørn Hansen
- Yasuhiro Matsumoto (a.k.a mattn)
MIT License