Documentation
¶
Overview ¶
Package brdocs provides functions to validate Brazilian documents such as CPF and CNPJ. nolint:mnd
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCNPJ ¶
IsCNPJ verifies if the given string is a valid CNPJ document. Punctuation will be automatically removed. Rules for new alfanumeric format.
func IsCPF ¶
IsCPF verifies if the given string is a valid CPF document. Punctuation will be automatically removed
func RemoveNonDigitAndLetters ¶
func RemoveNonDigitAndLetters(value *string)
RemoveNonDigitAndLetters updates the value, keeping only 0-9, A-Z characters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.