Documentation
¶
Overview ¶
Package cpfcnpj provides functions for validate CPF and CNPJ, the Brazilian taxpayer registry identification document
Index ¶
Constants ¶
View Source
const ( // CNPJFormatPattern is the pattern for string replacement // with Regex CNPJFormatPattern string = `([\d]{2})([\d]{3})([\d]{3})([\d]{4})([\d]{2})` )
View Source
const ( // CPFFormatPattern is the pattern for string replacement // with Regex CPFFormatPattern string = `([\d]{3})([\d]{3})([\d]{3})([\d]{2})` )
Variables ¶
This section is empty.
Functions ¶
func ValidateCNPJ ¶
ValidateCNPJ validates a CNPJ document You should use without punctuation
func ValidateCPF ¶
ValidateCPF validates a CPF document You should use without punctuation
Types ¶
type CNPJ ¶
type CNPJ string
CNPJ type definition
Click to show internal directories.
Click to hide internal directories.