Documentation ¶
Index ¶
- func Copy(s reflect.Value) reflect.Value
- func GetPointer[T any](src T) reflect.Value
- func GetPtrUnExportFiled(s reflect.Value, filedIndex int) reflect.Value
- func SetPtrUnExportFiled(s reflect.Value, filedIndex int, val reflect.Value)
- func WrapperFunc[Func any](f any, ...) (wf Func, err error)
- func WrapperFuncAfter[Func any](f Func, after func()) (wf Func, err error)
- func WrapperFuncBefore[Func any](f Func, before func()) (wf Func, err error)
- func WrapperFuncBefore2After[Func any](f Func, before, after func()) (wf Func, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPtrUnExportFiled ¶
GetPtrUnExportFiled 获取指针类型的未导出字段
func SetPtrUnExportFiled ¶
SetPtrUnExportFiled 设置指针类型的未导出字段
func WrapperFunc ¶ added in v0.4.3
func WrapperFunc[Func any](f any, wrapper func(call func([]reflect.Value) []reflect.Value) func(args []reflect.Value) []reflect.Value) (wf Func, err error)
WrapperFunc 包装函数
func WrapperFuncAfter ¶ added in v0.4.3
WrapperFuncAfter 包装函数,后置函数执行后
func WrapperFuncBefore ¶ added in v0.4.3
WrapperFuncBefore 包装函数,前置函数执行前
func WrapperFuncBefore2After ¶ added in v0.4.3
WrapperFuncBefore2After 包装函数,前置函数执行前,后置函数执行后
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.