Valentin Brandl 7d18008d80
Some checks failed
Build / build (push) Successful in 1m22s
Lint / lint (push) Failing after 1m51s
Helper to render template
2025-04-20 00:27:16 +02:00

15 lines
292 B
Go

package handlers
import (
"net/http"
"github.com/rs/zerolog/hlog"
)
func (app *Application) Index(w http.ResponseWriter, r *http.Request) {
renderTemplate(*indexTemplate, nil, func(w http.ResponseWriter, r *http.Request) {
l := hlog.FromRequest(r)
l.Info().Msg("Index")
})(w, r)
}