Documentation
¶
Index ¶
- func Contains(arr []string, s string) bool
- func Document(docType DocumentType, value string) bool
- func Email(s string) bool
- func Empty(s string) bool
- func Forge(value interface{}) validator
- func Max(value, length int) bool
- func MaxLength(value string, length int) bool
- func Min(value, length int) bool
- func MinLength(value string, length int) bool
- func Password(s string) bool
- func URL(value string) bool
- type DocumentType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Document ¶
func Document(docType DocumentType, value string) bool
Types ¶
type DocumentType ¶
type DocumentType string
const ( BrazilCNPJ DocumentType = "brazil/cnpj" BrazilCPF DocumentType = "brazil/cpf" )
Click to show internal directories.
Click to hide internal directories.