Add initial 'help' page
This commit is contained in:
@@ -11,7 +11,7 @@ type rule struct {
|
||||
divisible uint8
|
||||
}
|
||||
|
||||
var formatRules = map[string]rule{
|
||||
var FormatRules = map[string]rule{
|
||||
|
||||
"2of5": {
|
||||
minLength: 2,
|
||||
|
||||
@@ -3,7 +3,7 @@ package validation
|
||||
import "fmt"
|
||||
|
||||
func Validate(input string, format string) bool {
|
||||
rule, exists := formatRules[format]
|
||||
rule, exists := FormatRules[format]
|
||||
if !exists {
|
||||
fmt.Printf("Error: No rule found for format '%s'\n", format)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user