added constants for barcode types
This commit is contained in:
1 parent
a4f901055a
commit
2e13775dbc
11 files changed
+32
-16
No files matched your search
@@ -1,10 +1,11 @@
|
||||
package datamatrix
|
||||
|
||||
import (
|
||||
"github.com/boombuler/barcode"
|
||||
"github.com/boombuler/barcode/utils"
|
||||
"image"
|
||||
"image/color"
|
||||
|
||||
"github.com/boombuler/barcode"
|
||||
"github.com/boombuler/barcode/utils"
|
||||
)
|
||||
|
||||
type datamatrixCode struct {
|
||||
@@ -22,7 +23,7 @@ func (c *datamatrixCode) Content() string {
|
||||
}
|
||||
|
||||
func (c *datamatrixCode) Metadata() barcode.Metadata {
|
||||
return barcode.Metadata{"DataMatrix", 2}
|
||||
return barcode.Metadata{barcode.TypeDataMatrix, 2}
|
||||
}
|
||||
|
||||
func (c *datamatrixCode) ColorModel() color.Model {
|
||||
|
||||
Reference in new issue
Block a user