diff options
| author | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-08 01:02:29 -0500 |
|---|---|---|
| committer | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-08 01:02:29 -0500 |
| commit | b84cad66f701e274d8e8abd65fb46f95b340bcda (patch) | |
| tree | fd8c64ba172f7c77f2d32cb08cd2cf9c6b74b44f /setup.go | |
| parent | e2b5d4e8bf68dc5b790a5424fbc30ebda46c2f04 (diff) | |
Application is now interactiv
Diffstat (limited to 'setup.go')
| -rw-r--r-- | setup.go | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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) } |
