Documentation
¶
Index ¶
- func CallMethodByInterface[M, B any](o B, args ...interface{}) []interface{}
- func CallMethodByInterfaceVA[M, B any](o B, a interface{})
- func CallMethodByName[B any](n string, o B, args ...interface{}) []interface{}
- func CallMethodByNameVA[B any](n string, o B, a interface{})
- func GetInterfaceMethod[M any]() reflect.Method
- func MapValueToInterface(v reflect.Value) interface{}
- func UnexportedFieldByIndex(p any, n int) reflect.Value
- func UnexportedFieldByName(p any, name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallMethodByInterface ¶
func CallMethodByInterface[M, B any](o B, args ...interface{}) []interface{}
func CallMethodByInterfaceVA ¶
func CallMethodByInterfaceVA[M, B any](o B, a interface{})
CallMethodByInterfaceVA calls a void method on object o with one argument a. The method is specified by the interface M, which should implement exactly one appropriate method.
func CallMethodByName ¶
func CallMethodByNameVA ¶
func GetInterfaceMethod ¶
GetInterfaceMethod gets the method of an interface with one method.
func MapValueToInterface ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.