- Notifications
You must be signed in to change notification settings - Fork28
README.md
70 lines (53 loc) · 2.3 KB
README.md
CPF, CNPJ, CEP, CNH, PIS/PASEP, RENAVAM, CNS, license plate and voter ID validator for Go!
Everything in this file, but theLicense section, is inportuguese.
BR Doc é um pacote para validação, tanto do formato quanto dos dígitos,de documentos brasileiros, como CPF, CNPJ, CEP, CNH, PIS/PASEP, RENAVAM, placaveicular, RG (só SP e RJ) e título de eleitor.
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, ufs ...FederativeUnit) 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 FederativeUnit) bool
func IsVoterID(doc string) bool
- validação de CPF
- validação de CNPJ
- validação de CEP
- validação de CNH (obrigado @eminetto!)
- validação de RENAVAM (obrigado @leogregianin!)
- validação de placa veicular
- validação de CNS (obrigado @renatosuero!)
- validação de título de eleitor (obrigado @tiagompalte!)
- validação de RG
- SP (obrigado @robas!)
- RJ (obrigado @robas!)
- demais estados
This project code is in the public domain. See theLICENSE file.
Unless you explicitly state otherwise, any contribution intentionallysubmitted for inclusion in the work by you shall be in the publicdomain, without any additional terms or conditions.