Documentation ¶
Index ¶
- func CallObjectMethod(ptr interface{}, method string, args ...interface{}) []interface{}
- func DeepCopy(src, dst interface{}) error
- func GetStructAllFieldValues(ptr interface{}) []interface{}
- func GetStructFieldValues(ptr interface{}, except string) []interface{}
- func GetStructFieldValuesBy(ptr interface{}, names []string) []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallObjectMethod ¶
func CallObjectMethod(ptr interface{}, method string, args ...interface{}) []interface{}
调用struct内指定名称的函数
func GetStructAllFieldValues ¶
func GetStructAllFieldValues(ptr interface{}) []interface{}
获取struct内所有field的值
func GetStructFieldValues ¶
func GetStructFieldValues(ptr interface{}, except string) []interface{}
func GetStructFieldValuesBy ¶
func GetStructFieldValuesBy(ptr interface{}, names []string) []interface{}
获取struct内指定field的值
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.