I am using golang to add contents to the html template files. The main file is simple
func main() {
server := http.Server{
Addr: "localhost:8080",
}
http.HandleFunc("/process", processCover)
server.ListenAndServe()
}
func processCover(w http.ResponseWriter, r *http.Request) {
t1, _ := template.ParseFiles("t1.html", "t2.html")
t1.Execute(w, "hello World")
}
In the html file, if I add the following code
<!-- {{ range . }}
<li>{{ . }}</li>
{{ end }} -->
The items after it are all missing. I don't get it because I think this is commented. It should be some bullet point I don't know about go web.