https://github.com/qinains/fastergoding
Go hot reload helper.
https://github.com/qinains/fastergoding
autoreload-files go hot-reload hot-swap live-reload livedev
Last synced: 6 months ago
JSON representation
Go hot reload helper.
- Host: GitHub
- URL: https://github.com/qinains/fastergoding
- Owner: qinains
- License: gpl-3.0
- Created: 2017-05-10T16:51:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-03T16:39:30.000Z (almost 7 years ago)
- Last Synced: 2024-06-18T17:05:45.033Z (about 2 years ago)
- Topics: autoreload-files, go, hot-reload, hot-swap, live-reload, livedev
- Language: Go
- Homepage:
- Size: 1 MB
- Stars: 34
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fastergoding
A gopher tool for faster coding. It can automatically compile and rerun the main.main() function when the files is changed.
## Usage
```bash
cd {your-project}
go get -u github.com/qinains/fastergoding
```
then edit the `main.go` file
```go
package main
import (
"fmt"
"log"
"net/http"
"github.com/qinains/fastergoding" // add this code
)
func main() {
fastergoding.Run("-mod", "vendor", "-o", "myServer") // add this code
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello %s!", r.URL.Query().Get("name"))
})
err := http.ListenAndServe(":8080", nil)
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
}
```
## Develop
```bash
export GOPROXY=https://goproxy.cn #if you live in China
go get -u github.com/qinains/fastergoding
```
## Reference
[https://github.com/beego/bee](https://github.com/beego/bee)