From b2447bc967df37b31282a97e32c581954bb8bcc9 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 17 Oct 2024 16:37:23 +0200 Subject: Move from html/template to templ --- form/reflect.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'form/reflect.go') 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 } -- cgit v1.2.3-70-g09d2