package main import ( "net/http" ) // Home is a handler for / renders the home.html func Home(w http.ResponseWriter, req *http.Request) { data := struct{ Title string }{Title: "Home"} render(w, "home.html", data) }