about summary refs log tree commit diff stats
path: root/html/attributes.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2022-09-29 12:46:36 +0200
committerGitHub2022-09-29 10:46:36 +0000
commit32ad318ce8e77ae55e5cf68f9217271fb719333c (patch)
treeb21e2745aec8577d0a21d1e6f165e50f9a21601e /html/attributes.go
parentf387a7123040d9414350bf783bdeff17ac0572c7 (diff)
downloadgomponents-32ad318ce8e77ae55e5cf68f9217271fb719333c.tar.lz
gomponents-32ad318ce8e77ae55e5cf68f9217271fb719333c.tar.zst
gomponents-32ad318ce8e77ae55e5cf68f9217271fb719333c.zip
Add EncType html attribute (#109)
Diffstat (limited to 'html/attributes.go')
-rw-r--r--html/attributes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go
index 5a3dc3a..7733457 100644
--- a/html/attributes.go
+++ b/html/attributes.go
@@ -217,3 +217,7 @@ func Value(v string) g.Node {
 func Width(v string) g.Node {
 	return g.Attr("width", v)
 }
+
+func EncType(v string) g.Node {
+	return g.Attr("enctype", v)
+}