toolreflect

package
v0.0.0-...-f4f7fe9 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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