fastergoding: github.com/qinains/fastergoding Index | Files

package fastergoding

import "github.com/qinains/fastergoding"

Package fastergoding provides a function to automatically compile and run go code. Example:

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)
}

}

Index

Package Files

fastergoding.go

func Run Uses

func Run()

Run automatically compile and run the main function when the files is changed.

Package fastergoding imports 9 packages (graph). Updated 2019-05-23. Refresh now. Tools for package owners.