From b84cad66f701e274d8e8abd65fb46f95b340bcda Mon Sep 17 00:00:00 2001 From: David Schlachter Date: Thu, 8 Jan 2026 01:02:29 -0500 Subject: Application is now interactiv --- setup.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'setup.go') 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(`

{{ .Word }} {{ .Sound }} {{ .POS }} {{ .Gender }}

-
    - {{ range .Senses}} -
  1. {{ .Sense }}
    - {{ if .Example }} -
    • {{ .Example }}
  2. - {{ end }} + tmpl, err := template.New("entry").Parse( + `

    {{ .Word }} {{ .Sound }} {{ .POS }} {{ .Gender }}

    +
      {{ range .Senses}} +
    1. {{ .Sense }}
      + {{ if .Example }} +
      • {{ .Example }}
    2. {{ end }} -
    `) +{{ end }}
`) if err != nil { panic(err) } -- cgit v1.2.3