i´m beginner in Go and i dont understand where is the call to write the data "home.html" in the stream of the function Execute
.The http.ResponseWriter is the writter thats clear but in the function Execute
i cant see anything like write .. fmt.Fprint..
i only see the recursion of Execute
http://golang.org/src/pkg/html/template/template.go?s=1245:1315#L40
//my Function
func homeHandler(c http.ResponseWriter, req *http.Request) {
var homeTempl = template.Must(template.ParseFiles("home.html"))
//here is my misunderstanding
homeTempl.Execute(c, req.Host)
//Thats consistent
fmt.Fprint(c, "hallo")
}