Implement creation
This commit is contained in:
29
generation/types.go
Normal file
29
generation/types.go
Normal 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
|
||||
}
|
||||
|
||||
//
|
||||
Reference in New Issue
Block a user