all repos — gomponents @ 633b000d9115dbf7d4cc072cb1349268a09c3375

HTML components in pure Go

Add svg element (#46) Also add `cols` and `rows` attributes. Fixes #43.

Markus Wüstenberg
commit

633b000d9115dbf7d4cc072cb1349268a09c3375

parent

108f8d9ba564aef06155f6fdc83e140bb5953b3d

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

changed files
M attr/simple.goattr/simple.go
@@ -20,6 +20,10 @@ func Class(v string) g.Node {
return g.Attr("class", v) } +func Cols(v string) g.Node { + return g.Attr("cols", v) +} + func Content(v string) g.Node { return g.Attr("content", v) }
@@ -78,6 +82,10 @@ }
func Rel(v string) g.Node { return g.Attr("rel", v) +} + +func Rows(v string) g.Node { + return g.Attr("rows", v) } func Src(v string) g.Node {