Commit 88ac98bd authored by Kevin Lyda's avatar Kevin Lyda 💬
Browse files

More web server debug.

parent 2f99e79b
Pipeline #1221 passed with stage
in 1 minute and 9 seconds
...@@ -34,8 +34,11 @@ var indexPg indexPage ...@@ -34,8 +34,11 @@ var indexPg indexPage
func indexHandler(w http.ResponseWriter, r *http.Request) { func indexHandler(w http.ResponseWriter, r *http.Request) {
indexPg.CPM, _ = gc.GetCPM() indexPg.CPM, _ = gc.GetCPM()
t, _ := template.ParseFiles("index.html") t, err := template.ParseFiles("index.html")
t.Execute(w, indexPg) if err != nil {
log.Printf("Template error: %s\n", err)
}
t.Execute(w, &indexPg)
} }
func main() { func main() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment