package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Apr 7, 2025
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package check 提供结构体字段校验功能,支持多种数据类型和校验规则
func StructCheck(st interface{}, kmap map[string]interface{}, errlist []error) []error
StructCheck 对给定的结构体进行字段校验
st: 需要校验的结构体指针
kmap: 包含校验数据的map
errlist: 错误列表
返回: 包含所有校验错误的列表
Source Files
¶
Click to show internal directories.
Click to hide internal directories.