package main import ( "io" "net/http" ) func init() { http.HandleFunc("/livewatch", liveWatch) } func liveWatch(w http.ResponseWriter, r *http.Request) { key := r.FormValue("key") if len(key) != 32 { key = "Ok" } io.WriteString(w, key) }