From 6028e4c804c21cdbf6047c333d8227d30a5d24bf 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")