LinuxCommandLibrary

gow

File watcher for Go commands

TLDR

Run with auto-reload

$ gow run [.]
copy
Run specific file
$ gow run [main.go]
copy
Run tests with watching
$ gow test [./...]
copy
Build with watching
$ gow build
copy

SYNOPSIS

gow command [args]

DESCRIPTION

gow is a file watcher that wraps Go commands and re-runs them when source files change. It supports go run, test, build, and other commands, watching .go files and triggering re-execution on changes.
The tool provides a minimal approach to automatic rebuilding during Go development without complex configuration.

PARAMETERS

COMMAND

Go command to run (run, test, build).
ARGS
Arguments to pass.
--help
Display help information.

CAVEATS

Simple wrapper approach. May miss some file events. Use with development only.

HISTORY

gow was created as a minimal wrapper for watching Go file changes and re-running commands.

SEE ALSO

go(1), air(1), goreload(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community