Documentation ¶
Index ¶
- Variables
- func Elem(rType reflect.Type) reflect.Type
- func EnsureStruct(fType reflect.Type) reflect.Type
- func InlineStruct(p reflect.Type, onField func(f *reflect.StructField)) reflect.Type
- func IsMulti(destType reflect.Type) bool
- func IsObject(anError interface{}) bool
- func LookupType(lookup xreflect.LookupType, typeName string, opts ...xreflect.Option) (reflect.Type, error)
- func NewValue(p reflect.Type) interface{}
- func Traverse(any interface{}, visitor func(value reflect.Value) error) error
- type Accessor
- func (a *Accessor) SetBool(ptr unsafe.Pointer, value bool)
- func (a *Accessor) SetConverted(ptr unsafe.Pointer, value interface{}, format string) error
- func (a *Accessor) SetConvertedAndGet(ptr unsafe.Pointer, value interface{}, format string) (interface{}, error)
- func (a *Accessor) SetValue(ptr unsafe.Pointer, value interface{})
- func (a *Accessor) String(ptr unsafe.Pointer) string
- func (a *Accessor) Type() reflect.Type
- func (a *Accessor) Value(values interface{}, indexes ...int) (interface{}, error)
- func (a *Accessor) Values(values interface{}, indexes ...int) ([]interface{}, error)
- type Accessors
- type CycleDetector
- type FieldNamer
- type Namer
- type SqlxNamer
- type VeltyNamer
Constants ¶
This section is empty.
Variables ¶
View Source
var StrErrType = reflect.TypeOf(fmt.Errorf(""))
Functions ¶
func InlineStruct ¶
func LookupType ¶
Types ¶
type Accessor ¶
type Accessor struct {
// contains filtered or unexported fields
}
func NewAccessor ¶
func (*Accessor) SetConverted ¶
func (*Accessor) SetConvertedAndGet ¶
type Accessors ¶
type Accessors struct {
// contains filtered or unexported fields
}
func NewAccessors ¶
func (*Accessors) AccessorByName ¶
type CycleDetector ¶
type CycleDetector struct {
// contains filtered or unexported fields
}
func NewCycleDetector ¶
func NewCycleDetector(rType reflect.Type) *CycleDetector
func (*CycleDetector) Next ¶
func (c *CycleDetector) Next(rType reflect.Type) *CycleDetector
type FieldNamer ¶
type FieldNamer struct { }
func (*FieldNamer) Names ¶
func (s *FieldNamer) Names(rField reflect.StructField) []string
type Namer ¶
type Namer interface {
Names(rField reflect.StructField) []string
}
type VeltyNamer ¶
type VeltyNamer struct { }
func (*VeltyNamer) Names ¶
func (v *VeltyNamer) Names(rField reflect.StructField) []string
Click to show internal directories.
Click to hide internal directories.