yeeReflect

package
v0.0.0-...-89bd919 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

reflect 对反射做一些封装,获取结构体的相关信息

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTypeFullName

func GetTypeFullName(t reflect.Type) string

GetTypeName 获取类型的名称

func IndirectType

func IndirectType(v reflect.Type) reflect.Type

IndirectType 获取真实类型

func IsNil

func IsNil(v reflect.Value) bool

IsNil 判断是否为空,首先对类型判断,如果未知类型,直接为空

func StructGetAllField

func StructGetAllField(t reflect.Type) []*reflect.StructField

StructGetAllField 获取每个结构体的全部字段信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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