learnlytics-go/templ/examples/integration-chi/main.go
2025-03-20 12:35:13 +01:00

15 lines
207 B
Go

package main
import (
"net/http"
"github.com/a-h/templ"
"github.com/go-chi/chi/v5"
)
func main() {
r := chi.NewRouter()
r.Get("/", templ.Handler(Home()).ServeHTTP)
http.ListenAndServe(":3000", r)
}