package main import ( "html/template" "log" "net/http" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { template.Must(template.ParseFiles("templates/index.html")).Execute(w, nil) }) log.Fatalln(http.ListenAndServe(":8080", mux)) }