updated documentation
This commit is contained in:
1 parent
6c39380327
commit
66e4bb49cf
2 files changed
+5
-3
No files matched your search
@@ -237,6 +237,7 @@ func encodeEAN13(code string, result *eancode) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// encodes the given EAN 8 or EAN 13 number to a barcode image
|
||||
func Encode(code string) (barcode.Barcode, error) {
|
||||
if len(code) == 7 || len(code) == 12 {
|
||||
code += string(calcCheckNum(code))
|
||||
|
||||
Reference in new issue
Block a user