Fix up struct error

This commit is contained in:
Eliot Whalan 2016-06-23 19:11:40 +10:00
parent e1cfe96676
commit 07aa7ba910
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
1 changed files with 2 additions and 1 deletions

View File

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