Validation
Built-in Validators
Complete list of Ziva built-in validators
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Complete list of Ziva built-in validators
v := ziva.DefaultValidators
// Required field
v.Required()
// Minimum length
v.MinLength(5)
// Maximum length
v.MaxLength(100)
// Exact length
v.Length(8)
// Numeric range
v.Range(1, 100)
// Email
v.Email()
v.OptionalEmail()
// IP addresses
v.IP() // IPv4 or IPv6
v.IPv4() // IPv4 only
v.IPv6() // IPv6 only
// Domain and URL
v.Domain()
v.URL()
// Port
v.Port() // 1-65535
// Standard password (min 8 characters)
v.StandardPassword()
// Strong password (min 12 characters)
v.StrongPassword()