From b4ee4a69c329901cba9aa1194f532080c8cf5b1b Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 19:58:29 +1000 Subject: [PATCH] Make body string type --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index ece7de4..a6f5940 100644 --- a/main.go +++ b/main.go @@ -39,7 +39,7 @@ type Response struct { type Page struct { Title string - Body []byte + Body string Link string } @@ -231,7 +231,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) { link := ADDRESS + "/raw/" + paste p := &Page{ Title: paste, - Body: []byte(s), + Body: s, Link: link, } t, err := template.ParseFiles("assets/paste.html")