validrule

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MbLen added in v0.2.1

func MbLen(rule string, value interface{}, message string, data interface{}) error

MbLen 字符串长度 rule: 规则字符串 value: 待验证的值 message: 验证失败的提示信息 data: 参数表示校验时传递的所有参数,例如校验的是一个map或者struct时,往往在联合校验时有用

func RuleCommaArray

func RuleCommaArray(rule string, value interface{}, message string, data interface{}) error

RuleCommaArray 整数都好分割数组验证 rule: 规则字符串 value: 待验证的值 message: 验证失败的提示信息 data: 参数表示校验时传递的所有参数,例如校验的是一个map或者struct时,往往在联合校验时有用

Types

This section is empty.

Jump to

Keyboard shortcuts

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