card

package
v0.0.0-...-b0dcb70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: MIT Imports: 10 Imported by: 0

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 CardStyles struct {
	Text       string
	Background string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL