package controller import ( "net/http" ) func (app App) Index(res http.ResponseWriter, req *http.Request) { if !app.requireAuth(res, req) { return } app.tmpl.ExecuteTemplate(res, "index", nil) }