tldr/pages/common/goreload.md

17 lines
383 B
Markdown
Raw Permalink Normal View History

2019-10-06 14:09:28 +01:00
# goreload
> Live reload utility for Go programs.
> More information: <https://github.com/acoshift/goreload>.
- Set the name of the binary file to watch (defaults to `.goreload`):
2019-10-06 14:09:28 +01:00
`goreload -b {{path/to/binary}} {{file}}.go`
- Set a custom log prefix (defaults to `goreload`):
2019-10-06 14:09:28 +01:00
`goreload --logPrefix {{prefix}} {{file}}.go`
- Reload whenever any file changes:
`goreload --all`