Kind of Nodemon for Go TCP based applications
go run main.go [...options]
--help
to see the usage--path
path fo directory to watch (Note: path must end with trailing/
)--main
main file to run usinggo run <file>
inside the--path
(Note: Default isapp.go
)--port
port which will be used by the process
- Clone this repo
- cd into repo
go build .
./gomon --path ~/projects/api/ --main main.go --port 3000