Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoQRCode = errors.New("no QR code in image") ErrInvalidGridSize = errors.New("invalid grid size") ErrInvalidVersion = errors.New("invalid version") ErrFormatEcc = errors.New("ecc format error") ErrDataEcc = errors.New("ecc data error") ErrUnknownDataType = errors.New("unknown data type") ErrDataOverflow = errors.New("data overflow") ErrDataUnderflow = errors.New("data underflow") )
Error definition
View Source
var (
ErrOutOfRange = errors.New("out of range")
)
Error definition
Functions ¶
This section is empty.
Types ¶
type QRData ¶
type QRData struct { // Various parameters of the QR-code. These can mostly be // ignored if you only care about the data. Version int EccLevel int Mask int // This field is the highest-valued data type found in the QR code. DataType int // Data Payload. For the Kanji datatype, Payload is encoded as // Shift-JIS. For all other datatypes, Payload is ASCII text. Payload []uint8 // ECI assignment number Eci uint32 }
QRData holds the decoded QR-code data
Source Files ¶
Click to show internal directories.
Click to hide internal directories.