From c30471c8bfffce77ecb63d73fdb9ba96e44f108c Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 19:11:40 +1000 Subject: [PATCH] Fix up struct error --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 897aaa8..ca2b1cd 100644 --- a/main.go +++ b/main.go @@ -226,10 +226,11 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) { vars := mux.Vars(r) paste := vars["pasteId"] s := getPaste(paste) + link := ADDRESS + "/raw/" + paste p := &Page{ Title: paste, Body: []byte(s), - Link: ADDRESS + "/raw/" + paste + Link: link, } t, err := template.ParseFiles("assets/paste.html") if err != nil {