ajstarks / svgo

Go Language Library for SVG generation
Other
2.14k stars 169 forks source link

Add exported print* functions #33

Closed jackbot closed 3 years ago

jackbot commented 7 years ago

Rather than having to use fmt.Printf(svg.Writer, ...) to write an arbitary string to the writer, the internal print* functions have been wrapped in exported functions. This maintains backwards compatibility (almost all writer functions rely on the unexported functions) while also exposing a neater way of writing arbitrary strings.