validate

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddValidateFunc

func AddValidateFunc(name string, validateFunc ValidateFn)

func ValidateItem

func ValidateItem(tagValidate string, v interface{}, tagErrMsg ...string) (valid bool, message string)

Types

type ValidateFn

type ValidateFn func(v interface{}) (bool, string)

func GetValidateFunc

func GetValidateFunc(name string) (validateFunc ValidateFn, ok bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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