17 lines
341 B
Go
17 lines
341 B
Go
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
|
|
}
|