validate

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Supports slice or array
	//
	// Validatation would fail if all of elements in slice(array) are zero.
	//
	// Nil or empty slice is passed.
	TagNonZeroSlice = "non_zero_slice"
)

Variables

This section is empty.

Functions

func NonZeroSlice

func NonZeroSlice(fl v.FieldLevel) bool

func RegisterDefaultValidators

func RegisterDefaultValidators(validator *v.Validate)

Types

This section is empty.

Jump to

Keyboard shortcuts

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