Documentation
¶
Overview ¶
Package fastergoding provides a function to automatically compile and run go code. Example:
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) } }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.