From 92dc9975c7ff9e0ac52282d780d0b64b77727c26 Mon Sep 17 00:00:00 2001 From: Muyao CHEN Date: Wed, 26 Jun 2024 18:12:51 +0200 Subject: [PATCH] change the main.go place --- cmd/hello-world/main.go => main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename cmd/hello-world/main.go => main.go (91%) diff --git a/cmd/hello-world/main.go b/main.go similarity index 91% rename from cmd/hello-world/main.go rename to main.go index a0727b8..422a8e1 100644 --- a/cmd/hello-world/main.go +++ b/main.go @@ -19,7 +19,7 @@ func About(w http.ResponseWriter, r *http.Request) { } func renderTemplate(w http.ResponseWriter, tmpl string) { - parsedTemplate, _ := template.ParseFiles("../..//templates/" + tmpl) + parsedTemplate, _ := template.ParseFiles("./templates/" + tmpl) err := parsedTemplate.Execute(w, nil) if err != nil { fmt.Println("error parsing template:", err)