Go Brazil is a library for evaluation of brazilian documents and other patterns.
go get github.com/flavioltonon/go-brazil
In general, the lib usage involves the generation and evaluation of brazilian document numbers and other brazilian patterns, such as mobile numbers. Here are the documents/patterns which have been contemplated so far:
- CNPJ (Cadastro Nacional de Pessoas Jurídicas)
- CPF (Cadastro de Pessoas Físicas)
- Título de Eleitor
- PIS
- SUS
- Mobile numbers
- Dates
Some usage examples can be found at example/example.go.