Skip to content

lstarboy/fastergoding

 
 

Repository files navigation

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

About

Go hot reload helper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%