Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acoshift/goreload
Live reload utility for Go program
https://github.com/acoshift/goreload
Last synced: about 1 month ago
JSON representation
Live reload utility for Go program
- Host: GitHub
- URL: https://github.com/acoshift/goreload
- Owner: acoshift
- License: mit
- Fork: true (codegangsta/gin)
- Created: 2018-03-21T07:04:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-30T05:30:32.000Z (over 3 years ago)
- Last Synced: 2024-06-08T22:31:57.175Z (6 months ago)
- Language: Go
- Homepage:
- Size: 2.27 MB
- Stars: 35
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-stack - acoshift/goreload - Goreload automatically recompiles your code when it detects a change. Stack: Go (Terminal)
README
# Goreload
`goreload` forks from codegangsta/gin and remove unused features.
Just run `goreload` in your app directory.
`goreload` will automatically recompile your code when it
detects a change.## Installation
```shell
go install github.com/acoshift/goreload@master
```### macOS
**Optional** Use [fswatch](https://github.com/emcrisostomo/fswatch)
```shell
brew install fswatch
```## Basic usage
```shell
goreload main.go
```Options
```txt
--bin value, -b value name of generated binary file (default: ".goreload")
--path value, -t value Path to watch files from (default: ".")
--build value, -d value Path to build files from (defaults to same value as --path)
--excludeDir value, -x value Relative directories to exclude
--all reloads whenever any file changes, as opposed to reloading only on .go file change
--buildArgs value Additional go build arguments
--logPrefix value Setup custom log prefix
--help, -h show help
--version, -v print the version
```