all repos — gomponents @ a5a7242ae036a2dbd75ec40b8677ffa9b77f3209

HTML components in pure Go

Add stroke-width SVG attribute (#116)

Markus Wüstenberg
commit

a5a7242ae036a2dbd75ec40b8677ffa9b77f3209

parent

b12942fb32082729e862eb53b8c3962534561e83

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

changed files
M svg/attributes.gosvg/attributes.go
@@ -24,6 +24,10 @@ func Stroke(v string) g.Node {
return g.Attr("stroke", v) } +func StrokeWidth(v string) g.Node { + return g.Attr("stroke-width", v) +} + func ViewBox(v string) g.Node { return g.Attr("viewBox", v) }