LinuxCommandLibrary

gow

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 for Go commands. It wraps go commands and re-runs them when source files change, providing automatic rebuilding.
The tool supports go run, test, build and other commands. It watches .go files and triggers re-execution on changes.
gow provides simple go command watching.

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)

Copied to clipboard