func SimpleAuthenticatedPage(w http.ResponseWriter, r *http.Request, template string, data interface{}) { sess, err := globalSessions.SessionStart(w, r) defer sess.SessionRelease(w) sessname := sess.Get("email") log.Println(sessname) if err != nil { log.Println(err) } else { r := render.New(render.Options{}) r.HTML(w, http.StatusOK, template, data) } }