package main
import (
"html/template"
"net/http"
)
func main() {
tpl, err := template.ParseFiles("tpl.html")
if err != nil {
panic(err)
}
http.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
err = tpl.ExecuteTemplate(res, "tpl.html", req)
if err != nil {
panic(err)
}
})
http.ListenAndServe(":9000", nil)
}