Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(w http.ResponseWriter, p pet.Pet, styles CardStyles) error
Types ¶
type CardStyles ¶
type SVG ¶
type SVG struct { // Width and Height are attributes of the <svg> tag Width int `xml:"width,attr"` Height int `xml:"height,attr"` // Doc is all all of the contents within the <svg> tags, specified by the // `innerxml` struct tag Doc []byte `xml:",innerxml"` }
SVG contains the parsed attributes and xml from the given file.
Click to show internal directories.
Click to hide internal directories.