Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidateRule ¶
type ValidateRule struct {
// contains filtered or unexported fields
}
func Need ¶
func Need(fields ...string) (r *ValidateRule)
func NewValidateRule ¶
func NewValidateRule() (r *ValidateRule)
func Only ¶
func Only(fields ...string) (r *ValidateRule)
func (*ValidateRule) Need ¶
func (p *ValidateRule) Need(fields ...string) (r *ValidateRule)
func (*ValidateRule) Only ¶
func (p *ValidateRule) Only(fields ...string) (r *ValidateRule)
func (*ValidateRule) Rule ¶
func (p *ValidateRule) Rule(field string, ru string, msg string) (r *ValidateRule)
Click to show internal directories.
Click to hide internal directories.