Documentation ¶ Index ¶ func GetFuncName(fn interface{}) string func GetStructName(v interface{}) string func IsNotPtr(val interface{}) bool func IsPtr(val interface{}) bool func ReflectTry(f reflect.Value, args []reflect.Value, handler func(interface{})) type FuncInfo func GetFuncInfo(fn interface{}) (FuncInfo, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetFuncName ¶ func GetFuncName(fn interface{}) string func GetStructName ¶ func GetStructName(v interface{}) string func IsNotPtr ¶ added in v1.2.3 func IsNotPtr(val interface{}) bool func IsPtr ¶ added in v1.2.3 func IsPtr(val interface{}) bool func ReflectTry ¶ func ReflectTry(f reflect.Value, args []reflect.Value, handler func(interface{})) Types ¶ type FuncInfo ¶ added in v1.3.0 type FuncInfo struct { Type reflect.Type Value reflect.Value InArgs []reflect.Type InArgsLen int OutArgs []reflect.Type OutArgsLen int } func GetFuncInfo ¶ added in v1.3.0 func GetFuncInfo(fn interface{}) (FuncInfo, error) Source Files ¶ View all Source files func.go reflect.go Click to show internal directories. Click to hide internal directories.