Fix up struct error
This commit is contained in:
parent
e1cfe96676
commit
07aa7ba910
3
main.go
3
main.go
|
@ -226,10 +226,11 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
vars := mux.Vars(r)
|
vars := mux.Vars(r)
|
||||||
paste := vars["pasteId"]
|
paste := vars["pasteId"]
|
||||||
s := getPaste(paste)
|
s := getPaste(paste)
|
||||||
|
link := ADDRESS + "/raw/" + paste
|
||||||
p := &Page{
|
p := &Page{
|
||||||
Title: paste,
|
Title: paste,
|
||||||
Body: []byte(s),
|
Body: []byte(s),
|
||||||
Link: ADDRESS + "/raw/" + paste
|
Link: link,
|
||||||
}
|
}
|
||||||
t, err := template.ParseFiles("assets/paste.html")
|
t, err := template.ParseFiles("assets/paste.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue