package main import ( "fmt" "net/http" ) const tpl = ` Demo

Main website

Did you get an alert?
` func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, tpl) } func main() { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) }