diff options
Diffstat (limited to 'handlers.go')
-rw-r--r-- | handlers.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/handlers.go b/handlers.go index 4ec511d..151eb60 100644 --- a/handlers.go +++ b/handlers.go @@ -30,7 +30,9 @@ func indexHandler(w http.ResponseWriter, r *http.Request) { // Pass the confObj.Instance data to the template, // then send it to the client. + confObj.mu.RLock() err := tmpls.ExecuteTemplate(w, "index.html", confObj.Instance) + confObj.mu.RUnlock() if err != nil { log500(w, r, err) return |