feat: add initial Go+HTMX web project structure

This commit is contained in:
Grail Finder (aider)
2025-05-01 17:07:15 +03:00
commit b3a730b3dd
4 changed files with 58 additions and 0 deletions

11
handlers/handlers.go Normal file
View 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)
}