all repos — gomponents @ 4248e85def552b68672b8f6f4de12f0e2bf50517

HTML components in pure Go

Add "checked" bool attribute Fixes #127.

Markus Wüstenberg
commit

4248e85def552b68672b8f6f4de12f0e2bf50517

parent

4f9709afcc83b617f17f8e5757d58a55be7bf2cf

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

changed files
M html/attributes.gohtml/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") }