Update godoc comment of EncodeWithColor methods
This commit is contained in:
1 parent
1c8224977e
commit
b1129f9d8b
9 files changed
+10
-8
No files matched your search
+1
-1
@@ -32,7 +32,7 @@ var encodingTable = map[rune][]bool{
|
||||
'D': []bool{true, false, true, false, false, true, true, false, false, true},
|
||||
}
|
||||
|
||||
// Encode creates a codabar barcode for the given content
|
||||
// Encode creates a codabar barcode for the given content and color scheme
|
||||
func EncodeWithColor(content string, color barcode.ColorScheme) (barcode.Barcode, error) {
|
||||
checkValid, _ := regexp.Compile(`[ABCD][0123456789\-\$\:/\.\+]*[ABCD]$`)
|
||||
if content == "!" || checkValid.ReplaceAllString(content, "!") != "!" {
|
||||
|
||||
Reference in new issue
Block a user