validate

package
v0.0.0-...-3b54ddd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

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 Rule

func Rule(field string, ru string, msg 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)

func (*ValidateRule) Validate

func (p *ValidateRule) Validate(m map[string]string) (err error)

to validata this map

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL