reflectx

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllFieldName

func GetAllFieldName(m interface{}) ([]string, error)

func GetFieldByName

func GetFieldByName(m interface{}, n string) (reflect.StructField, error)

func GetFieldValueByName

func GetFieldValueByName(m interface{}, n string) reflect.Value

func GetType

func GetType(m interface{}) reflect.Type

func GetValueByName

func GetValueByName(m interface{}, n string) interface{}

func IsPoint

func IsPoint(m interface{}) bool

IsPoint 判断是否为指针

func NilOrZero

func NilOrZero(m interface{}, fs string) bool

func SetFieldValue

func SetFieldValue(m interface{}, n string, v reflect.Value) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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