Skip to content
Go hot reload helper.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor/github.com/fsnotify/fsnotify
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
README.md
fastergoding.go

README.md

Fastergoding

A gopher tool for faster coding. It can automatically compile and rerun the main.main() function when the files is changed.

Usage

package main

import (
	"fmt"
	"log"
	"net/http"

	"github.com/qinains/fastergoding"
)

func main() {
	fastergoding.Run() // Just 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

go get -u github.com/golang/dep/cmd/dep
dep ensure

Reference

https://github.com/beego/bee

You can’t perform that action at this time.