Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ISO31661A_2 = make(map[string]Country)
View Source
var ISO31661A_3 = make(map[string]Country)
Functions ¶
Types ¶
type Country ¶
type Country struct {
// ISO 3166-1 Alpha-2
A2 string
// ISO 3166-1 Alpha-3
A3 string
// ISO 3166-1 numeric
Num string
// The validator for the country's zip / postal code, will be nil
// for countries that don't use postal codes.
Zip StringMatcher
// The validator for the country's phone numbers, may be nil.
Phone StringMatcher
//
VAT StringMatcher
}
type StringMatcher ¶
mimics *regexp.Regexp interface
type StringMatcherFunc ¶
func (StringMatcherFunc) MatchString ¶
func (f StringMatcherFunc) MatchString(v string) bool
Click to show internal directories.
Click to hide internal directories.