2019-10-06 14:09:28 +01:00
|
|
|
# goreload
|
|
|
|
|
|
|
|
> Live reload utility for Go programs.
|
|
|
|
> More information: <https://github.com/acoshift/goreload>.
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Watch a binary file (defaults to `.goreload`):
|
2019-10-06 14:09:28 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`goreload -b {{path/to/binary}} {{path/to/file.go}}`
|
2019-10-06 14:09:28 +01:00
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Set a custom log prefix (defaults to `goreload`):
|
2019-10-06 14:09:28 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`goreload --logPrefix {{prefix}} {{path/to/file.go}}`
|
2019-10-06 14:09:28 +01:00
|
|
|
|
|
|
|
- Reload whenever any file changes:
|
|
|
|
|
|
|
|
`goreload --all`
|