feat: add initial Go+HTMX web project structure
This commit is contained in:
		
							
								
								
									
										11
									
								
								handlers/handlers.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								handlers/handlers.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| package handlers | ||||
|  | ||||
| import ( | ||||
| 	"html/template" | ||||
| 	"net/http" | ||||
| ) | ||||
|  | ||||
| func HandleHome(w http.ResponseWriter, r *http.Request) { | ||||
| 	tmpl := template.Must(template.ParseFiles("templates/public/index.html")) | ||||
| 	tmpl.Execute(w, nil) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder (aider)
					Grail Finder (aider)