feat: display colored word cards from map

This commit is contained in:
Grail Finder (aider)
2025-05-01 18:10:43 +03:00
parent b5a67c2578
commit 024dbcffc2
3 changed files with 8 additions and 4 deletions

View File

@ -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)
}