goreflect

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Autowired

func Autowired(some any) error

func ContainsStru

func ContainsStru[T any](someStru interface{}) bool

func ContainsStruPtr

func ContainsStruPtr(someStru, childStru any) bool
func ContainsGometa(some interface{}) bool {
	return ContainsStru[basedto.Gometa](some)

}

func FindNameOfIface

func FindNameOfIface(some any) string

func FindPkgNameOfIface

func FindPkgNameOfIface(some any) string

func FindStruNilPtrFields

func FindStruNilPtrFields(Stru any) []reflect.StructField

func FindStructFields

func FindStructFields(v any) []reflect.StructField

func IfIface

func IfIface[T any](some any) bool

func IfInterface

func IfInterface[T any](some any) (T, bool)

func IfNilPtrChild

func IfNilPtrChild(Stru any, fieldName string) bool

func IfProxy

func IfProxy(some any) bool

func IfPtrNil

func IfPtrNil(v any) bool

func IfStru

func IfStru(value any) bool

func IfTypeStru

func IfTypeStru(v reflect.Type) bool

func IfValueStru

func IfValueStru(v reflect.Value) bool

func InitStruNilPtrFields

func InitStruNilPtrFields(Stru any)

func LoadBeanProxy

func LoadBeanProxy[T baseiface.IbaseProxy]() T

func NewOfPtrType

func NewOfPtrType[T baseiface.IpoolObj]() T

T is *type

func NewOfPtrTypeProxy

func NewOfPtrTypeProxy[T baseiface.IbaseProxy]() T

func NewOfType

func NewOfType[T baseiface.IpoolObj]() T

no used

func NewProxyType

func NewProxyType(t reflect.Type) (baseiface.IbaseProxy, bool)

func NewStru

func NewStru[S any]() *S

func NewStruProxy

func NewStruProxy[S baseiface.IbaseProxy]() S

Types

This section is empty.

Jump to

Keyboard shortcuts

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