From 67b77091ed6a4ed2ebf632fe998c57035f490c33 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 1 May 2025 18:22:14 +0300 Subject: [PATCH] Fix: go version --- go.mod | 6 +----- handlers/handlers.go | 10 +++++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index fd5a6ed..10e16d2 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,3 @@ module golias -go 1.21 - -require ( - github.com/go-chi/chi/v5 v5.0.12 -) +go 1.24 diff --git a/handlers/handlers.go b/handlers/handlers.go index cb0b704..b37bf86 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -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) }