12 lines
216 B
Go
12 lines
216 B
Go
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)
|
|
}
|