Make body string type
This commit is contained in:
parent
51862f92b5
commit
6028e4c804
4
main.go
4
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")
|
||||
|
|
Loading…
Reference in New Issue