Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block 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 QR ¶
type QR struct { Code *qrcode.QRCode // underlying QR Code Blocksize int // size of each block in pixels, default = 16 pixels Borderwidth int // size of the border in blocks, default = 4 blocks Borderfill color.Color // fill color for the border }
QR holds a QR Code (from github.com/skip2/go-qrcode) and SVG settings.
func New ¶
New returns the QR for the provided string, with default settings for blocksize, borderwidth and background color. Call .String() to obtain the SVG string.
Click to show internal directories.
Click to hide internal directories.