Files
cheatsheet-tldr/tldr/goreload
2025-04-23 00:19:06 +00:00

22 lines
483 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# goreload
> Live reload utility for Go programs.
> More information: <https://github.com/acoshift/goreload>.
- Watch a binary file (defaults to `.goreload`):
`goreload {{[-b|--bin]}} {{path/to/binary}} {{path/to/file.go}}`
- Set a custom log prefix (defaults to `goreload`):
`goreload --logPrefix {{prefix}} {{path/to/file.go}}`
- Reload whenever any file changes:
`goreload --all`