diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-23 00:21:53 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-23 01:08:13 -0400 |
commit | cd635e6c6b009d6c9d6943ea7c850ca740172b65 (patch) | |
tree | 47c482560cf5f0019f6e13076fc39053f9d5bf77 /handlers.go | |
parent | d15180e9dcd540d5850fa0319a7614620075eaea (diff) | |
download | getwtxt-cd635e6c6b009d6c9d6943ea7c850ca740172b65.tar.gz |
configuration init changes
Diffstat (limited to 'handlers.go')
-rw-r--r-- | handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers.go b/handlers.go index 9dc7192..7f05f8f 100644 --- a/handlers.go +++ b/handlers.go @@ -31,9 +31,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() + confObj.Mu.RLock() err := tmpls.ExecuteTemplate(w, "index.html", confObj.Instance) - confObj.mu.RUnlock() + confObj.Mu.RUnlock() if err != nil { log500(w, r, err) return |