//
pkg.gl
Category
github.com/csrgxtu/gf
util
gvalid
package
1.13.6
Repository:
https://github.com/csrgxtu/gf.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
12
Dependents
1
Files
1.2k SLOC
#
Functions
Check
Check checks single value with specified rules.
CheckMap
CheckMap validates map and returns the error result.
CheckStruct
CheckStruct validates strcut and returns the error result.
RegisterRule
RegisterRule registers custom validation rule and function for package.
#
Structs
Error
Error is the validation error for validation result.
#
Type aliases
CustomMsg
CustomMsg is the custom error message type, like: map[field] => string|map[rule]string.
ErrorMap
ErrorMap is the validation error map: map[field]map[rule]message.
RuleFunc
RuleFunc is the custom function for data validation.