gistlib
main.gopackage main import ( "fmt" "net/http" ) func handlerFunc(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, World!") } func main() { http.HandleFunc("/", handlerFunc) http.ListenAndServe(":8080", nil) } 226 chars16 lines
package main import ( "fmt" "net/http" ) func handlerFunc(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, World!") } func main() { http.HandleFunc("/", handlerFunc) http.ListenAndServe(":8080", nil) }
gistlibby LogSnag