Files
tldr/pages.zh/common/goreload.md

16 lines
406 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# goreload
> Go 程序的实时重载工具。
> 更多信息:<https://github.com/acoshift/goreload>。
- 监视一个二进制文件(默认使用 `.goreload`
`goreload -b {{path/to/binary}} {{path/to/file.go}}`
- 设置自定义日志前缀(默认使用 `goreload`
`goreload --logPrefix {{prefix}} {{path/to/file.go}}`
- 每当任何文件更改时重新加载:
`goreload --all`