Documentation
¶
Index ¶
- type Mapper
- type ParamResolver
- type Reflection
- func (r *Reflection) AddResolver(resolver ParamResolver)
- func (r *Reflection) Call(parameters ...interface{}) []reflect.Value
- func (r *Reflection) CallMethod(s string, parameters ...interface{}) []reflect.Value
- func (r *Reflection) Element() interface{}
- func (r *Reflection) Fill(input interface{}) interface{}
- func (r *Reflection) FullName() string
- func (r *Reflection) HasReceiver() bool
- func (r *Reflection) InstanceOf(instance interface{}) bool
- func (r *Reflection) IsPointer() bool
- func (r *Reflection) IsReceiver() bool
- func (r *Reflection) IsScalar() bool
- func (r *Reflection) IsStruct() bool
- func (r *Reflection) MethodByName(name string) *Reflection
- func (r *Reflection) Methods() map[string]*Reflection
- func (r *Reflection) Name() string
- func (r *Reflection) New() interface{}
- func (r *Reflection) Params() []*Reflection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParamResolver ¶
type ParamResolver func(rec *Reflection, parameter any) (any, bool)
type Reflection ¶
type Reflection struct {
// contains filtered or unexported fields
}
func Reflect ¶
func Reflect(v any) *Reflection
func (*Reflection) AddResolver ¶
func (r *Reflection) AddResolver(resolver ParamResolver)
func (*Reflection) Call ¶
func (r *Reflection) Call(parameters ...interface{}) []reflect.Value
func (*Reflection) CallMethod ¶
func (r *Reflection) CallMethod(s string, parameters ...interface{}) []reflect.Value
func (*Reflection) Element ¶
func (r *Reflection) Element() interface{}
func (*Reflection) Fill ¶
func (r *Reflection) Fill(input interface{}) interface{}
func (*Reflection) FullName ¶
func (r *Reflection) FullName() string
func (*Reflection) HasReceiver ¶
func (r *Reflection) HasReceiver() bool
func (*Reflection) InstanceOf ¶
func (r *Reflection) InstanceOf(instance interface{}) bool
func (*Reflection) IsPointer ¶
func (r *Reflection) IsPointer() bool
func (*Reflection) IsReceiver ¶
func (r *Reflection) IsReceiver() bool
func (*Reflection) IsScalar ¶
func (r *Reflection) IsScalar() bool
func (*Reflection) IsStruct ¶
func (r *Reflection) IsStruct() bool
func (*Reflection) MethodByName ¶
func (r *Reflection) MethodByName(name string) *Reflection
func (*Reflection) Methods ¶
func (r *Reflection) Methods() map[string]*Reflection
func (*Reflection) Name ¶
func (r *Reflection) Name() string
func (*Reflection) New ¶
func (r *Reflection) New() interface{}
func (*Reflection) Params ¶
func (r *Reflection) Params() []*Reflection
Click to show internal directories.
Click to hide internal directories.