Implement creation

This commit is contained in:
Fred Boniface
2023-09-01 20:50:47 +01:00
parent 53cae5ebe6
commit 0e1425c1b9
16 changed files with 328 additions and 66 deletions

View File

@@ -3,7 +3,7 @@ package validation
import "fmt"
func Validate(input string, format string) bool {
rule, exists := barcodeRules[format]
rule, exists := formatRules[format]
if !exists {
fmt.Printf("Error: No rule found for format '%s'\n", format)
return false