barcodes/generation/code39.go
2023-09-04 12:05:16 +01:00

19 lines
405 B
Go

package generation
import (
"fmt"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/code39"
)
func generateCode39(parameters Parameters) (barcode.Barcode, error) {
GeneratedBarcode, err := code39.Encode(parameters.Content, true, true)
if err != nil {
fmt.Println("Error creating Barcode", err)
}
strippedBarcode := GeneratedBarcode.(barcode.Barcode)
return strippedBarcode, err
}