summaryrefslogtreecommitdiff
path: root/setup.go
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-08 01:02:29 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-08 01:02:29 -0500
commitb84cad66f701e274d8e8abd65fb46f95b340bcda (patch)
treefd8c64ba172f7c77f2d32cb08cd2cf9c6b74b44f /setup.go
parente2b5d4e8bf68dc5b790a5424fbc30ebda46c2f04 (diff)
Application is now interactiv
Diffstat (limited to 'setup.go')
-rw-r--r--setup.go15
1 files changed, 7 insertions, 8 deletions
diff --git a/setup.go b/setup.go
index 83827c5..12a805c 100644
--- a/setup.go
+++ b/setup.go
@@ -88,15 +88,14 @@ func populateDictionary(db *sql.DB) error {
log.Printf("preparing list of dictionary words...")
// Set up the template
- tmpl, err := template.New("entry").Parse(`<p>{{ .Word }} {{ .Sound }} <i>{{ .POS }} {{ .Gender }}</i></p>
- <ol>
- {{ range .Senses}}
- <li>{{ .Sense }}<br>
- {{ if .Example }}
- <ul><li><i>{{ .Example }}</i></li></ul></li>
- {{ end }}
+ tmpl, err := template.New("entry").Parse(
+ `<p>{{ .Word }} {{ .Sound }} <i>{{ .POS }} {{ .Gender }}</i></p>
+<ol>{{ range .Senses}}
+ <li>{{ .Sense }}<br>
+ {{ if .Example }}
+ <ul><li><i>{{ .Example }}</i></li></ul></li>
{{ end }}
- </ol>`)
+{{ end }}</ol>`)
if err != nil {
panic(err)
}