change the main.go place

This commit is contained in:
Muyao CHEN 2024-06-26 18:12:51 +02:00
parent ab6184e675
commit 92dc9975c7

View File

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