validator

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(data interface{}) map[string]string

Validate validates bound values of an unpacker struct against validation rules defined in that unpacker struct.

func ValidateField

func ValidateField(field interface{}, rules string) map[string]string

ValidateField validates a single variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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