summary refs log tree commit diff stats
path: root/handlers.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-23 00:21:53 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-23 01:08:13 -0400
commitcd635e6c6b009d6c9d6943ea7c850ca740172b65 (patch)
tree47c482560cf5f0019f6e13076fc39053f9d5bf77 /handlers.go
parentd15180e9dcd540d5850fa0319a7614620075eaea (diff)
downloadgetwtxt-cd635e6c6b009d6c9d6943ea7c850ca740172b65.tar.gz
configuration init changes
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go4
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