xreflect

package
v0.0.0-...-4a4b955 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVariableType

func GetVariableType(req interface{}) string

反射获取变量类型

func StructHasField

func StructHasField(req interface{}, field string) error

反射判断结构体是否包含字段

func StructPorIsEmpty

func StructPorIsEmpty(req interface{}) error

反射判断结构体指针是否为空结构体 通过error返回值作为判断依据,如果为空结构体返回nil,否则返回错误

Types

This section is empty.

Jump to

Keyboard shortcuts

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