Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidateExtension ¶
type ValidateExtension struct { *validate.FieldRules // contains filtered or unexported fields }
ValidateExtension contains the rules set by the (validate.rules) method option extension.
func (ValidateExtension) MarshalJSON ¶
func (v ValidateExtension) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (ValidateExtension) Rules ¶
func (v ValidateExtension) Rules() []ValidateRule
type ValidateRule ¶
type ValidateRule struct { Name string `json:"name"` Value interface{} `json:"value"` }
ValidateRule represents a single validator rule from the (validate.rules) method option extension.
Click to show internal directories.
Click to hide internal directories.