Gomon
gomon
forks from acoshift/goreload and remove unused features.
Just run gomon
in your app directory.
gomon
will automatically recompile your code when it
detects a change.
Installation
go get -u github.com/lbernardo/gomon
go install github.com/lbernardo/gomon
Basic usage
gomon --exec "make build"
Custom our exec command
gomon --exec "env GOOS=linux go build -ldflags='-s -w' bin/hello src/hello/*"
Options
--bin value, -b value name of generated binary file (default: ".gomon")
--path value, -t value Path to watch files from (default: ".")
--build value, -d value Path to build files from (defaults to same value as --path)
--excludeDir value, -x value Relative directories to exclude
--all reloads whenever any file changes, as opposed to reloading only on .go file change
--exec "value" Custom exec command
--logPrefix value Setup custom log prefix
--help, -h show help
--version, -v print the version