Add 2of5 and pdf417
This commit is contained in:
@@ -23,6 +23,12 @@ func Generate(parameters Parameters) (barcode.Barcode, error) {
|
||||
barcode_content, err = generateQr(parameters)
|
||||
case Datamatrix:
|
||||
barcode_content, err = generateDatamatrix(parameters)
|
||||
case PDF417:
|
||||
barcode_content, err = generatePDF417(parameters)
|
||||
case TwoOfFiveInterleaved:
|
||||
barcode_content, err = generate2of5Interleaved(parameters)
|
||||
case TwoOfFive:
|
||||
barcode_content, err = generate2of5(parameters)
|
||||
default:
|
||||
fmt.Println("Unsupported barcode type: ", parameters.Format)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user