creflect

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFuncName

func GetFuncName(fn any) string

func GetStructName

func GetStructName(v any) string

func IsNotPtr

func IsNotPtr(val any) bool

func IsPtr

func IsPtr(val any) bool

func ReflectTry

func ReflectTry(f reflect.Value, args []reflect.Value, handler func(any))

Types

type FuncInfo

type FuncInfo struct {
	Type       reflect.Type
	Value      reflect.Value
	InArgs     []reflect.Type
	InArgsLen  int
	OutArgs    []reflect.Type
	OutArgsLen int
}

func GetFuncInfo

func GetFuncInfo(fn any) (FuncInfo, error)

Jump to

Keyboard shortcuts

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