Implement creation
This commit is contained in:
16
generation/datamatrix.go
Normal file
16
generation/datamatrix.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package generation
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/boombuler/barcode"
|
||||
"github.com/boombuler/barcode/datamatrix"
|
||||
)
|
||||
|
||||
func generateDatamatrix(parameters Parameters) (barcode.Barcode, error) {
|
||||
barcode, err := datamatrix.Encode(parameters.Content)
|
||||
if err != nil {
|
||||
fmt.Println("Error creating Barcode", err)
|
||||
}
|
||||
return barcode, err
|
||||
}
|
||||
Reference in New Issue
Block a user