summaryrefslogtreecommitdiff
path: root/form/reflect.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2024-10-17 16:37:23 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2024-10-17 16:37:23 +0200
commitb2447bc967df37b31282a97e32c581954bb8bcc9 (patch)
tree39758d1121fae6dc1d27e8a45035690421900d6c /form/reflect.go
parent789d21034e526a03d3e91d5d284a4888be938340 (diff)
downloadgosten-b2447bc967df37b31282a97e32c581954bb8bcc9.tar.gz
gosten-b2447bc967df37b31282a97e32c581954bb8bcc9.tar.bz2
gosten-b2447bc967df37b31282a97e32c581954bb8bcc9.zip
Move from html/template to templ
Diffstat (limited to '')
-rw-r--r--form/reflect.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/form/reflect.go b/form/reflect.go
index 4dd4018..604c9e1 100644
--- a/form/reflect.go
+++ b/form/reflect.go
@@ -1,7 +1,6 @@
package form
import (
- "html/template"
"reflect"
"strings"
)
@@ -103,13 +102,6 @@ func (f *field) applyTags(tags map[string]string) {
if v, ok := tags["id"]; ok {
f.ID = v
}
- if v, ok := tags["footer"]; ok {
- // Probably shouldn't be HTML but whatever.
- f.Footer = template.HTML(v)
- }
- if v, ok := tags["class"]; ok {
- f.Class = v
- }
if v, ok := tags["options"]; ok {
f.Options = strings.Split(v, ",")
}
@@ -143,7 +135,5 @@ type field struct {
Type string
ID string
Options []string
- Value interface{}
- Footer template.HTML
- Class string
+ Value any
}