Fix codabar generation

This commit is contained in:
Fred Boniface 2023-09-04 12:18:11 +01:00
parent 0b2effd135
commit 5e1cf45c58

View File

@ -8,7 +8,7 @@ import (
) )
func generateCodabar(parameters Parameters) (barcode.Barcode, error) { func generateCodabar(parameters Parameters) (barcode.Barcode, error) {
codabarItem, err := codabar.Encode(parameters.Content) codabarItem, err := codabar.Encode("A" + parameters.Content + "B")
if err != nil { if err != nil {
fmt.Println("Error creating Barcode", err) fmt.Println("Error creating Barcode", err)
} }