change the main.go place
This commit is contained in:
		| @ -19,7 +19,7 @@ func About(w http.ResponseWriter, r *http.Request) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func renderTemplate(w http.ResponseWriter, tmpl string) { | func renderTemplate(w http.ResponseWriter, tmpl string) { | ||||||
| 	parsedTemplate, _ := template.ParseFiles("../..//templates/" + tmpl) | 	parsedTemplate, _ := template.ParseFiles("./templates/" + tmpl) | ||||||
| 	err := parsedTemplate.Execute(w, nil) | 	err := parsedTemplate.Execute(w, nil) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		fmt.Println("error parsing template:", err) | 		fmt.Println("error parsing template:", err) | ||||||
		Reference in New Issue
	
	Block a user