33 lines
664 B
Go
33 lines
664 B
Go
package generation
|
|
|
|
type BarcodeType string
|
|
|
|
const (
|
|
Aztec BarcodeType = "aztec"
|
|
Codabar BarcodeType = "codabar"
|
|
Code93 BarcodeType = "code93"
|
|
Code128 BarcodeType = "code128"
|
|
QR BarcodeType = "qr"
|
|
Datamatrix BarcodeType = "datamatrix"
|
|
PDF417 BarcodeType = "pdf417"
|
|
TwoOfFive BarcodeType = "2of5"
|
|
TwoOfFiveInterleaved BarcodeType = "2of5interleaved"
|
|
)
|
|
|
|
type ECCLevel int
|
|
|
|
const (
|
|
Low ECCLevel = 1
|
|
Med ECCLevel = 2
|
|
High ECCLevel = 3
|
|
Max ECCLevel = 4
|
|
)
|
|
|
|
type Parameters struct {
|
|
Format BarcodeType
|
|
ECCLevel ECCLevel
|
|
Content string
|
|
}
|
|
|
|
//
|