Documentation ¶
Index ¶
- Constants
- Variables
- func Eq(mark string) string
- func Ge(mark string) string
- func Gt(mark string) string
- func In(mark string) string
- func Le(mark string) string
- func Lt(mark string) string
- func Ne(mark string) string
- func NotEmpty() string
- func RegexpMatch(rule string) string
- func RegisterRule(key string, rule Rules) (err error)
- func ValidatorField(field *FieldMeta) error
- func Verify(st interface{}, roleMap Rules) (err error)
- type FieldMeta
- type Rules
- type RulesMap
Constants ¶
View Source
const (
NotNull validateType = iota
)
Variables ¶
View Source
var CustomizeMap = make(map[string]Rules)
Functions ¶
func RegexpMatch ¶
@author: [zooqkl](https://github.com/zooqkl) @function: RegexpMatch @description: 正则校验 校验输入项是否满足正则表达式 @param: rule string @return: string
func RegisterRule ¶
func ValidatorField ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.