Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFondMethod = fmt.Errorf("找不到要调用的方法")
Functions ¶
func CallTypeMethod ¶
func CallTypeMethod(obj interface{}, methodName string, args ...interface{}) (returns []any, err error)
CallTypeMethod 反射调用类型的方法 returns=函数返回值 obj如果是指针 methodName可以是指针方法,也可以是非指针方法 obj如果是非指针 methodName必须是非指针方法
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.