barcodes/generation/types.go

35 lines
751 B
Go
Raw Permalink Normal View History

2023-09-01 20:50:47 +01:00
package generation
type BarcodeType string
const (
2023-09-01 22:14:11 +01:00
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"
2023-09-04 12:05:16 +01:00
Code39 BarcodeType = "code39"
EAN BarcodeType = "ean"
2023-09-01 20:50:47 +01:00
)
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
}
//