barcodes/generation/code128.go

17 lines
338 B
Go
Raw Normal View History

2023-09-01 20:50:47 +01:00
package generation
import (
"fmt"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/code128"
)
func generateCode128(parameters Parameters) (barcode.Barcode, error) {
barcode, err := code128.EncodeWithoutChecksum(parameters.Content)
if err != nil {
fmt.Println("Error creating Barcode", err)
}
return barcode, err
}