Documentation Index
Fetch the complete documentation index at: https://ziva.zeleza.ru/llms.txt
Use this file to discover all available pages before exploring further.
Built-in Validators
Ziva provides a wide range of built-in validators.
Basic 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)
Network Validators
// 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
Passwords
// Standard password (min 8 characters)
v.StandardPassword()
// Strong password (min 12 characters)
v.StrongPassword()