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

+3 -3
View File
@@ -130,9 +130,9 @@ func Encode(content string, interleaved bool) (barcode.Barcode, error) {
resBits.AddBit(mode.end...)
kindTxt := ""
if interleaved {
kindTxt = " (interleaved)"
return utils.New1DCode(barcode.Type2of5Interleaved, content, resBits), nil
} else {
return utils.New1DCode(barcode.Type2of5, content, resBits), nil
}
return utils.New1DCode("2 of 5"+kindTxt, content, resBits), nil
}