moved checksum function to its own interface
its not needed that all barcodes have an integer checksum so it should not be needed in every implementation.
This commit is contained in:
1 parent
fe0f26ff6d
commit
b066487b3e
11 files changed
+57
-34
No files matched your search
@@ -134,5 +134,5 @@ func Encode(content string, interleaved bool) (barcode.Barcode, error) {
|
||||
if interleaved {
|
||||
kindTxt = " (interleaved)"
|
||||
}
|
||||
return utils.New1DCode("2 of 5"+kindTxt, content, resBits, -1), nil
|
||||
return utils.New1DCode("2 of 5"+kindTxt, content, resBits), nil
|
||||
}
|
||||
Reference in new issue
Block a user