check

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package check 提供结构体字段校验功能,支持多种数据类型和校验规则

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StructCheck

func StructCheck(st interface{}, kmap map[string]interface{}, errlist []error) []error

StructCheck 对给定的结构体进行字段校验 st: 需要校验的结构体指针 kmap: 包含校验数据的map errlist: 错误列表 返回: 包含所有校验错误的列表

Types

This section is empty.

Jump to

Keyboard shortcuts

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