- Notifications
You must be signed in to change notification settings - Fork32
Brazilian docs validator for Go - CPF, CNPJ, CEP, RENAVAM, CNH and license plate!
License
paemuri/brdoc
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
CPF, CNPJ, CEP, CNH, PIS/PASEP, RENAVAM, CNS, license plate and voter IDvalidator for Go!
Everything in this file, but theLicense section, is in portuguese.
BR Doc é um pacote para validação, tanto do formato quanto dos dígitos, dedocumentos brasileiros.
Aceito PRs de todas as formas. Está permitido escrever em português, também. :)
Principais funções:
func IsCPF(doc string) bool
func IsCNPJ(doc string) bool
func IsCEP(doc string) (valid bool, uf UF)
func IsCEPFrom(doc string, ufs ...UF) bool
func IsCNH(doc string) bool
func IsPIS(doc string) bool
func IsRENAVAM(doc string) bool
func IsPlate(doc string) bool
func IsNationalPlate(doc string) bool
func IsMercosulPlate(doc string) bool
func IsCNS(doc string) bool
func IsRG(doc string, uf UF) (valid bool, err error)
func IsVoterID(doc string) bool
func IsPhone(phone string) (valid bool, uf UF)
func IsPhoneFrom(phone string, ufs ...UF) bool
- validação de CPF
- validação de CNPJ
- validação de CEP
- validação de CNH
- validação de RENAVAM
- validação de placa veicular
- validação de CNS
- validação de título de eleitor
- validação de telefone
- validação de RG
- SP
- RJ
- demais estados
This project code is in the public domain. See theLICENSE file.
Unless you explicitly state otherwise, any contribution intentionally submittedfor inclusion in the work by you shall be in the public domain, without anyadditional terms or conditions.
About
Brazilian docs validator for Go - CPF, CNPJ, CEP, RENAVAM, CNH and license plate!
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors9
Uh oh!
There was an error while loading.Please reload this page.