Skip to content
Snippets Groups Projects
Commit 88ac98bd authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

More web server debug.

parent 2f99e79b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -34,8 +34,11 @@ var indexPg indexPage
func indexHandler(w http.ResponseWriter, r *http.Request) {
indexPg.CPM, _ = gc.GetCPM()
t, _ := template.ParseFiles("index.html")
t.Execute(w, indexPg)
t, err := template.ParseFiles("index.html")
if err != nil {
log.Printf("Template error: %s\n", err)
}
t.Execute(w, &indexPg)
}
func main() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment