diff --git a/main.go b/main.go index 38dd16d..fbbd276 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,16 @@ package main -func 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)) +}