Documentation ¶
Index ¶
- func CallErrorHook(hooks interface{}, hookName string, ctx interface{}) error
- func CallHook(hooks interface{}, hookName string, ctx interface{})
- func GetMethodValue(ptrOnStruct interface{}, methodName string) (reflect.Value, error)
- func IsMethodPureInterface(ptrOnStruct interface{}, methodName string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallErrorHook ¶
CallErrorHook Call function returning an error: func hooks.hookName(ctx) error {} Tested and working
func CallHook ¶
func CallHook(hooks interface{}, hookName string, ctx interface{})
CallHook Call function: func hooks.hookName(ctx) {} Panic error at runtime, surely due to the removal of returned error (Works in CallErrorHook)
func GetMethodValue ¶
GetMethodValue Get the reflect.Value of a method if found in the struct pointed by the pointer passed as argument
func IsMethodPureInterface ¶
IsMethodPureInterface Checks that the method to call is not a pure interface (vs. an interface implemented in a struct) Else, display a generic message and continue without error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.