From a5a7242ae036a2dbd75ec40b8677ffa9b77f3209 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Tue, 15 Nov 2022 14:48:01 +0100 Subject: Add stroke-width SVG attribute (#116) --- svg/attributes.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'svg/attributes.go') diff --git a/svg/attributes.go b/svg/attributes.go index 10b7c69..52c9c61 100644 --- a/svg/attributes.go +++ b/svg/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) } -- cgit 1.4.1