barcodes/generation/types.go

35 lines
751 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"
Code39 BarcodeType = "code39"
EAN BarcodeType = "ean"
)
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
}
//