You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic(fmt.Sprintf("Bad field type %T", field.Interface()))
2811
2811
}
2812
-
returniso3166_1_alpha_numeric[code]
2812
+
2813
+
_, ok:=iso3166_1_alpha_numeric[code]
2814
+
returnok
2813
2815
}
2814
2816
2815
2817
// isIso3166AlphaNumericEU is the validation function for validating if the current field's value is a valid iso3166-1 alpha-numeric European Union country code.
panic(fmt.Sprintf("Bad field type %T", field.Interface()))
2861
2865
}
2862
-
returniso4217_numeric[code]
2866
+
2867
+
_, ok:=iso4217_numeric[code]
2868
+
returnok
2863
2869
}
2864
2870
2865
2871
// isBCP47LanguageTag is the validation function for validating if the current field's value is a valid BCP 47 language tag, as parsed by language.Parse
0 commit comments