Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModeRaw = Mode(0) ModeXML = Mode(1) ModeNative = Mode(2) )
Pre defined the modes output zbarcam
Variables ¶
View Source
var ( ErrDataBufferEmpty = errors.New("The data buffer is empty") ErrFormatError = errors.New("Unknown data format") ErrSkipRootTag = errors.New("Skip root tag") )
Errors for barcode
Functions ¶
This section is empty.
Types ¶
type BarCode ¶
type BarCode struct { Type string `xml:"type,attr" json:"type"` Quality int `xml:"quality,attr" json:"quality"` Data []byte `xml:"data" json:"data"` }
A BarCode incoming barcode from buffer
func MustBarCode ¶
MustBarCode decode and create *Barcode from buffer with xml format or native format of zbarcam
Click to show internal directories.
Click to hide internal directories.