Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCEP ¶ added in v1.1.0
func IsCEP(doc string, ufs ...FederativeUnit) bool
IsCEP verifies if `doc` is a valid CEP. `ufs` represents the possible Federative Units the CEP should matches. If none is provided, it validates the document for any state/district.
func ValidateCEPFormat ¶ added in v1.1.0
ValidateCEPFormat verifies if the CEP has a valid format.
func ValidateCNPJFormat ¶ added in v1.1.1
ValidateCNPJFormat verifies if the CNPJ has a valid format.
func ValidateCPFFormat ¶ added in v1.1.1
ValidateCPFFormat verifies if the CPF has a valid format.
Types ¶
type FederativeUnit ¶ added in v1.1.0
type FederativeUnit uint8
FederativeUnit represents a state or a district in Brazil.
const ( AC FederativeUnit = iota AL AP AM BA CE DF ES GO MA MT MS MG PA PB PR PE PI RJ RN RS RO RR SC SP SE TO )
Click to show internal directories.
Click to hide internal directories.