From 4248e85def552b68672b8f6f4de12f0e2bf50517 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Thu, 11 May 2023 11:22:01 +0200 Subject: Add "checked" bool attribute Fixes #127. --- html/attributes.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'html/attributes.go') diff --git a/html/attributes.go b/html/attributes.go index 3c69f94..b38dd95 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -16,6 +16,10 @@ func AutoPlay() g.Node { return g.Attr("autoplay") } +func Checked() g.Node { + return g.Attr("checked") +} + func Controls() g.Node { return g.Attr("controls") } -- cgit 1.4.1