Implement creation

This commit is contained in:
Fred Boniface
2023-09-01 20:50:47 +01:00
parent 53cae5ebe6
commit 0e1425c1b9
16 changed files with 328 additions and 66 deletions

29
generation/types.go Normal file
View File

@@ -0,0 +1,29 @@
package generation
type BarcodeType string
const (
Aztec BarcodeType = "aztec"
Codabar BarcodeType = "codabar"
Code93 BarcodeType = "code93"
Code128 BarcodeType = "code128"
QR BarcodeType = "qr"
Datamatrix BarcodeType = "datamatrix"
)
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
}
//