{"repo":"silenceper/gowatch","free":true,"listed":false,"github":"https://github.com/silenceper/gowatch","clone":"git clone https://github.com/silenceper/gowatch.git","description":"🚀 gowatch is a command line tool that builds and (re)starts your go project everytime you save a Go or template file.","language":"Go","stars":869,"topics":["inotify","gowatch","go","automate","build","build-tool","livereload","reload","hotreload","golang"],"license":"MIT","category":"cli-tools","readme_excerpt":"gowatch 中文文档 gowatch is a command line tool that builds and (re)starts your go project everytime you save a Go or template file. Installation There are two ways to install gowatch : 1. Install via Go After installation, you need to add gowatch binary to PATH environment variable in your /.bashrc or /.bash profile file: To update: 2. Install via Homebrew (macOS) To update: Usage Start gowatch: Gowatch will watch for file events, and every time you create/modify/delete a file it will build and restart the application,If go build returns an error, it will log it in stdout. Support Options - -o : Not required, specify the target file path for the build - -p : Not required, specify the package to be built (can also be a single file) - -args: Not required, specify program runtime parameters, for example: -args = '-host =: 8080, -name = demo' - -v: Not required, display gowatch version information - -l: Not required, specify the log level, default is debug - -h: Not required, show usage example: gowatch -o ./bin/demo -p ./cmd/demo Configuration file In most cases, you don't need to specify the configuration. You can meet most of the requirements by directly executing the gowatch command. You can initialize the gowatch.yml configuration file to the current directory with the default settings running the following command. Create a gowatch.yml file in the execution directory: Author @silenceper Inspired by bee","default_branch":null,"files":null,"tree":[],"storefront":"/r/silenceper","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/silenceper/gowatch/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."}