1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-16 23:15:25 +02:00
tldr/pages/common/goreload.md

17 lines
390 B
Markdown
Raw Normal View History

2019-10-06 20:09:28 +07:00
# goreload
> Live reload utility for Go programs.
> More information: <https://github.com/acoshift/goreload>.
- Watch a binary file (defaults to `.goreload`):
2019-10-06 20:09:28 +07:00
`goreload {{[-b|--bin]}} {{path/to/binary}} {{path/to/file.go}}`
2019-10-06 20:09:28 +07:00
- Set a custom log prefix (defaults to `goreload`):
2019-10-06 20:09:28 +07:00
`goreload --logPrefix {{prefix}} {{path/to/file.go}}`
2019-10-06 20:09:28 +07:00
- Reload whenever any file changes:
`goreload --all`