LinuxCommandLibrary

goreload

Live reload tool for Go development

TLDR

Watch and reload Go app

$ goreload
copy
Watch specific directory
$ goreload -d [./cmd]
copy
Exclude directory
$ goreload -e [vendor]
copy
Custom build command
$ goreload -b "go build -o app"
copy

SYNOPSIS

goreload [options]

DESCRIPTION

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.

PARAMETERS

-d DIR

Directory to watch.
-e DIR
Exclude directory.
-b CMD
Build command.
--help
Display help information.

CAVEATS

Development tool only. Some file events may be missed. Configure exclude patterns.

HISTORY

goreload is one of several Go live reload tools created to improve development workflow.

SEE ALSO

air(1), nodemon(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community