barcodes/generation/2of5interleaved.go

17 lines
341 B
Go
Raw Normal View History

2023-09-01 22:14:11 +01:00
package generation
import (
"fmt"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/twooffive"
)
func generate2of5Interleaved(parameters Parameters) (barcode.Barcode, error) {
barcode, err := twooffive.Encode(parameters.Content, true)
if err != nil {
fmt.Println("Error creating Barcode", err)
}
return barcode, err
}