asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.05k stars 555 forks source link

added phone number validator function #309 #418

Closed mohammadrezaabdi closed 3 years ago

mohammadrezaabdi commented 3 years ago
New feature, or refactor of existing code: master/develop branch | Q | A |-------------- | ------ | Documentation | no | Bugfix | no | BC Break | no | New Feature | yes | RFC | no | QA | no ### Description added phone number validator -> feature #309 the phone number validator can validate a phone number with county code like below: `+39(country code) 79435680(phone number)` these formats are valid for phone number: 3979435680 +3979435680 +39 79435680 (39) 79435680 +(39)79435680 +(39) 794-335-6854 ...