all repos — gomponents @ 32ad318ce8e77ae55e5cf68f9217271fb719333c

HTML components in pure Go

Add EncType html attribute (#109)

Markus Wüstenberg
commit

32ad318ce8e77ae55e5cf68f9217271fb719333c

parent

f387a7123040d9414350bf783bdeff17ac0572c7

1 file changed, 4 insertions(+), 0 deletions(-)

changed files
M html/attributes.gohtml/attributes.go
@@ -217,3 +217,7 @@
func Width(v string) g.Node { return g.Attr("width", v) } + +func EncType(v string) g.Node { + return g.Attr("enctype", v) +}