From b9771a638a8862e6047021839c7baa40b31458d0 Mon Sep 17 00:00:00 2001 From: Tom Andrade Date: Wed, 1 May 2019 16:44:24 +0200 Subject: [PATCH] Reorder variables --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1a2cd00..3cf1f78 100644 --- a/main.go +++ b/main.go @@ -32,12 +32,12 @@ const appVersion = "1.0.0" var src = rand.NewSource(time.Now().UnixNano()) var pool = cache.New(240*time.Hour, 1*time.Hour) +var okTmpl = template.Must(template.ParseFiles("templates/ok.html")) var indexTmpl = template.Must(template.ParseFiles("templates/index.html")) var returnTmpl = template.Must(template.ParseFiles("templates/returnPage.html")) var notFoundTmpl = template.Must(template.ParseFiles("templates/404.html")) var badRequestTmpl = template.Must(template.ParseFiles("templates/400.html")) var internalErrorTmpl = template.Must(template.ParseFiles("templates/500.html")) -var okTmpl = template.Must(template.ParseFiles("templates/ok.html")) func index(w http.ResponseWriter, r *http.Request) { indexTmpl.Execute(w, indexTmpl)