Reorder variables

This commit is contained in:
Tom Andrade 2019-05-01 16:44:24 +02:00
parent c1a0d6a789
commit b9771a638a
Signed by: wolvie
GPG Key ID: 31AAB07872E82669

View File

@ -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)