PressureTank / main.go
Afranco's picture
init: first commit, framing repo
40913a3
raw
history blame contribute delete
284 Bytes
package main
import (
"fmt"
"net/http"
"net/url"
)
func main() {
http.HandleFunc("/", HelloServer)
http.ListenAndServe(":8080", nil)
}
func HelloServer(w http.ResponseWriter, r *http.Request) {
m, _ := url.ParseQuery(r.URL.RawQuery)
fmt.Fprintf(w, "Hello, %s!", m["q"])
}