17 lines
323 B
Go
17 lines
323 B
Go
package generation
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/boombuler/barcode"
|
|
"github.com/boombuler/barcode/codabar"
|
|
)
|
|
|
|
func generateCodabar(parameters Parameters) (barcode.Barcode, error) {
|
|
codabar, err := codabar.Encode(parameters.Content)
|
|
if err != nil {
|
|
fmt.Println("Error creating Barcode", err)
|
|
}
|
|
return codabar, err
|
|
}
|