{"repo":"mitranim/gow","free":true,"listed":false,"github":"https://github.com/mitranim/gow","clone":"git clone https://github.com/mitranim/gow.git","description":"Missing watch mode for Go commands. Watch Go files and execute a command like \"go run\" or \"go test\"","language":"Go","stars":903,"topics":["golang","go","watch","build-tool","task-runner"],"license":"Unlicense","category":"dev-tools","readme_excerpt":"Overview Go W atch: missing watch mode for the go command. It's invoked exactly like go , but also watches Go files and reruns on changes. Runs on MacOS, Linux, BSD, WSL, and now also Windows (thanks to @jmadore-payfacto). TOC Overview Why Installation Usage Hotkeys Configuration Scripting Gotchas Watching Templates Alternatives License Misc Why Why not other runners, general-purpose watchers, etc: Go-specific, easy to remember. Has hotkeys, such as ctrl+r to restart! (Opt-in via -r .) Ignores non-Go files by default. Better watcher: recursive, no delays, no polling; uses https://github.com/rjeczalik/notify. Silent by default. (Opt-in logging via -v .) No garbage files. Properly clears the terminal on restart. (Opt-in via -c .) Does not leak subprocesses. Minimal dependencies. Installation Make sure you have Go installed, then run this: This should download the source and compile the executable into $GOPATH/bin/gow . Make sure $GOPATH/bin is in your $PATH so the shell can discover the gow command. For example, my /.profile contains this: Alternatively, you can run the executable using the full path. At the time of writing, /go is the default $GOPATH for Go installations. Some systems may have a different one. On MacOS, if installation fails with dylib-related errors, you may need to run xcode-select --install or install Xcode. This is caused by gow 's dependencies, which depend on C. See #15. Usage The first argument to gow , after the flags, can be any Go subcommand: build ,","default_branch":null,"files":null,"tree":[],"storefront":"/r/mitranim","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mitranim/gow/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}