barcodes/generation/types.go

33 lines
664 B
Go
Raw 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-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
}
//