added constants for barcode types

This commit is contained in:
Aaron committed 2017-06-17 16:42:17 -05:00
1 parent a4f901055a
commit 2e13775dbc
11 files changed
+32 -16

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ func (c *aztecCode) Content() string {
}
func (c *aztecCode) Metadata() barcode.Metadata {
return barcode.Metadata{"Aztec", 2}
return barcode.Metadata{barcode.TypeAztec, 2}
}
func (c *aztecCode) ColorModel() color.Model {