isbr

package module
v0.0.0-...-ee5702d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2019 License: MIT Imports: 2 Imported by: 0

README

Brazilian Ozzo Validation

Brazilian validation functions for ozzo validation, extending the library.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL