diff --git a/components/index.html b/components/index.html index 1f5f8e4..0c4081d 100644 --- a/components/index.html +++ b/components/index.html @@ -3,7 +3,7 @@ - HTMX + Go Starter + Word Colors diff --git a/go.mod b/go.mod index db0d956..fd5a6ed 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,7 @@ module golias -go 1.24.2 +go 1.21 + +require ( + github.com/go-chi/chi/v5 v5.0.12 +) diff --git a/handlers/handlers.go b/handlers/handlers.go index 97c0051..3e78a10 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -5,7 +5,7 @@ import ( "net/http" ) -var roundWords map[string]string{ +var roundWords = map[string]string{ "hamster": "blue", "child": "red", "wheel": "white", @@ -18,6 +18,6 @@ func HandlePing(w http.ResponseWriter, r *http.Request) { } func HandleHome(w http.ResponseWriter, r *http.Request) { - tmpl := template.Must(template.ParseFiles("components/index.html")) + tmpl := template.Must(template.ParseFiles("../components/index.html")) tmpl.Execute(w, nil) }