Documentation
¶
Overview ¶
Package validate is the rules a live page's field keeps, as attributes of its LiveSchema:
l.Field(&d.Q, ui.Bind{}, validate.Required{}, validate.Max(100))
or in Vuka, after the field: Q string @ui.Bind{} @validate.Required @validate.Max(100). A set breaking one is refused, the field's message in the component's live.error.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct{}
Email is an email address.
func (Email) Apply ¶
func (Email) Apply(o *ui.FieldOptions)
type Len ¶
type Len int
Len is exactly that many of the same.
func (Len) Apply ¶
func (n Len) Apply(o *ui.FieldOptions)
type Min ¶
type Min float64
Min and Max bound a string's characters, a number's value, a slice's or map's items.
func (Min) Apply ¶
func (m Min) Apply(o *ui.FieldOptions)
type OmitEmpty ¶
type OmitEmpty struct{}
OmitEmpty skips the other rules for the zero value.
func (OmitEmpty) Apply ¶
func (OmitEmpty) Apply(o *ui.FieldOptions)
Click to show internal directories.
Click to hide internal directories.