package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 23, 2024
License: GPL-3.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 GetField(obj interface{}, name string) (i interface{}, err error)
MakeValueType 将ptr类型的Type转换为val类型的Type
func SetField(obj interface{}, name string, value interface{}) error
SetField 使用反射设置结构体字段的值,obj必须是个指针类型
Source Files
¶
Click to show internal directories.
Click to hide internal directories.