Watch for file changes and reload Go binaries and tests in your development machine.
go install github.com/altipla-consulting/reloader@latestRun one or multiple tests everytime their packages change:
reloader test ./pkg/foo ./pkg/barRun tests in verbose mode showing the full output in real time:
reloader test -v ./pkg/fooRun only one test by name:
reloader test -v ./pkg/foo -r TestNameHere$Run all tests with a prefix in its name:
reloader test -v ./pkg/foo -r TestGetRun a binary and restart it everytime the current folder changes:
reloader run ./cmd/myappWatch additional folders for changes to restart the application:
reloader run ./cmd/myapp -w ./pkgRestart application everytime code changes, or also with any config file change:
reloader run ./pkg/foo ./pkg/bar -e .json -e .ymlRestart application if it exits unexpectedly:
reloader run ./pkg/foo -rYou can make pull requests or create issues in GitHub. Any code you send should be formatted using make gofmt.