Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Phone validate if a string is a brazilian phone format or not Phone = validation.NewStringRule(isPhone, "must be a valid phone") // CellPhone validate if a string is a brazilian cellphone format or not CellPhone = validation.NewStringRule(isCellPhone, "must be a valid cellphone") // PhoneOrCellPhone validate if a string is a brazilian phone/cellphone format or not PhoneOrCellPhone = validation.NewStringRule(isPhoneOrCellPhone, "must be a valid phone or cellphone") )
View Source
var CEP = validation.NewStringRule(isCEP, "must be a valid CEP")
CEP validate if a string is a correct CEP format or not
View Source
var CNPJ = validation.NewStringRule(isCNPJ, "must be a valid CNPJ")
CNPJ validate if a string is a correct CNPJ format or not
View Source
var CPF = validation.NewStringRule(isCPF, "must be a valid CPF")
CPF validate if a string is a correct CPF format or not
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.