package
Version:
v0.0.0-...-4a4b955
Opens a new window with list of versions in this module.
Published: Mar 1, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetVariableType(req interface{}) string
反射获取变量类型
func StructHasField(req interface{}, field string) error
反射判断结构体是否包含字段
func StructPorIsEmpty(req interface{}) error
反射判断结构体指针是否为空结构体
通过error返回值作为判断依据,如果为空结构体返回nil,否则返回错误
Source Files
¶
Click to show internal directories.
Click to hide internal directories.