github.com/EngineerKamesh/gofullstack@v0.0.0-20180609171605-d41341d7d4ee/volume2/section7/gopherfaceq/handlers/myprofile.go (about) 1 package handlers 2 3 import ( 4 "net/http" 5 ) 6 7 func MyProfileHandler(w http.ResponseWriter, r *http.Request) { 8 9 m := make(map[string]string) 10 m["PageTitle"] = "My Profile" 11 RenderGatedTemplate(w, "./templates/profile.html", m) 12 13 }