Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QR ¶
type QR struct { Text string // text of the QR Blocksize uint8 // size of each block in pixels, default = 16 pixels Borderwidth uint8 // size of the border in blocks, default = 4 blocks Borderfill color.Color // fill color for the border UseDots bool // draw using dots or squares Svg string // the SVG code // contains filtered or unexported fields }
QR holds a QR Code (from github.com/unix-world/smartgo/markup/svg-qrcode) and SVG settings.
type RBlock ¶
type RBlock struct { X int `xml:"x,attr"` Y int `xml:"y,attr"` Width int `xml:"width,attr"` Height int `xml:"height,attr"` Fill string `xml:"fill,attr"` }
Block is a color block in the rendered QR code.
type SVG ¶
type SVG struct { XMLName xml.Name `xml:"svg"` NS string `xml:"xmlns,attr"` Render string `xml:"shape-rendering,attr"` Width uint `xml:"width,attr"` Height uint `xml:"height,attr"` Style string `xml:"style,attr"` RBlocks []RBlock `xml:"rect"` EBlocks []EBlock `xml:"ellipse"` }
SVG is the vector representation of a QR code, as a Go struct.
Click to show internal directories.
Click to hide internal directories.