← 返回命令列表

Linux command

goreload 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Watch and reload Go app

goreload

Watch specific directory

goreload -d [./cmd]

Exclude directory

goreload -e [vendor]

Custom build command

goreload -b "go build -o app"

说明

goreload is a live reload tool for Go development. It watches source files and automatically rebuilds and restarts the application when changes are detected, eliminating manual rebuild cycles. The tool supports configurable watch directories, exclude patterns, and custom build commands.

参数

-d _DIR_
Directory to watch.
-e _DIR_
Exclude directory.
-b _CMD_
Build command.
--help
Display help information.

FAQ

What is the goreload command used for?

goreload is a live reload tool for Go development. It watches source files and automatically rebuilds and restarts the application when changes are detected, eliminating manual rebuild cycles. The tool supports configurable watch directories, exclude patterns, and custom build commands.

How do I run a basic goreload example?

Run `goreload` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d _DIR_ do in goreload?

Directory to watch.