HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gow — Watches Go files and restarts the app on changes. More information: <https://github.com/mitranim/gow

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thewatchescommandfilesandcligowrestarts

Problem

How to use the gow command: Watches Go files and restarts the app on changes. More information: <https://github.com/mitranim/gow>.

Solution

gow — Watches Go files and restarts the app on changes. More information: <https://github.com/mitranim/gow>.

Start and watch the current directory:
gow run .


Start the application with the specified arguments:
gow run . {{argument1 argument2 ...}}


Watch subdirectories in verbose mode:
gow -v -w={{path/to/directory1,path/to/directory2,...}} run .


Watch the specified file extensions:
gow -e={{go,html}} run .


Display help:
gow -h

Code Snippets

Start and watch the current directory

gow run .

Start the application with the specified arguments

gow run . {{argument1 argument2 ...}}

Watch subdirectories in verbose mode

gow -v -w={{path/to/directory1,path/to/directory2,...}} run .

Watch the specified file extensions

gow -e={{go,html}} run .

Display help

gow -h

Context

tldr-pages: common/gow

Revisions (0)

No revisions yet.