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
// 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
2293
+
funcisBCP47LanguageTag(flFieldLevel) bool {
2294
+
field:=fl.Field()
2295
+
2296
+
iffield.Kind() ==reflect.String {
2297
+
_, err:=language.Parse(field.String())
2298
+
returnerr==nil
2299
+
}
2300
+
2301
+
panic(fmt.Sprintf("Bad field type %T", field.Interface()))
0 commit comments