Fix: go version

This commit is contained in:
Grail Finder
2025-05-01 18:22:14 +03:00
parent 7ebd0db05a
commit 67b77091ed
2 changed files with 6 additions and 10 deletions

6
go.mod
View File

@ -1,7 +1,3 @@
module golias
go 1.21
require (
github.com/go-chi/chi/v5 v5.0.12
)
go 1.24

View File

@ -6,11 +6,11 @@ import (
)
var roundWords = map[string]string{
"hamster": "blue",
"child": "red",
"wheel": "white",
"hamster": "blue",
"child": "red",
"wheel": "white",
"condition": "black",
"test": "white",
"test": "white",
}
func HandlePing(w http.ResponseWriter, r *http.Request) {
@ -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, roundWords)
}