aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dump.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dump.go')
-rw-r--r--cmd/dump.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/cmd/dump.go b/cmd/dump.go
index a0deba7..ec8976b 100644
--- a/cmd/dump.go
+++ b/cmd/dump.go
@@ -21,7 +21,6 @@ import (
"fmt"
"log"
"bytes"
- "strings"
"text/template"
"vidhukant.com/guestbook/db"
@@ -51,7 +50,6 @@ var dumpCmd = &cobra.Command{
}
defer rows.Close()
-
var entries []db.GuestbookEntry
for rows.Next() {
@@ -59,7 +57,6 @@ var dumpCmd = &cobra.Command{
if err := rows.Scan(&entry.Name, &entry.Website, &entry.Message); err != nil {
log.Fatal(err)
}
- entry.Message = strings.Replace(entry.Message, "\n", "<br>", -1)
entries = append(entries, entry)
}
if rows.Err() != nil {