Versions in this module Expand all Collapse all v1 v1.5.1 Feb 8, 2017 v1.5.0 Oct 23, 2016 Changes in this version + var DefaultNameFunc = func(t reflect.Type) string + func Convert_Slice_byte_To_Slice_byte(in *[]byte, out *[]byte, s Scope) error + func EnforcePtr(obj interface{}) (reflect.Value, error) + type Cloner struct + func NewCloner() *Cloner + func (c *Cloner) DeepCopy(in interface{}) (interface{}, error) + func (c *Cloner) RegisterDeepCopyFunc(deepCopyFunc interface{}) error + func (c *Cloner) RegisterGeneratedDeepCopyFunc(fn GeneratedDeepCopyFunc) error + type ConversionFuncs struct + func NewConversionFuncs() ConversionFuncs + func (c ConversionFuncs) Add(fns ...interface{}) error + func (c ConversionFuncs) Merge(other ConversionFuncs) ConversionFuncs + type Converter struct + Debug DebugLogger + func NewConverter(nameFn NameFunc) *Converter + func (c *Converter) AddGenericConversionFunc(fn GenericConversionFunc) + func (c *Converter) ConversionFuncValue(inType, outType reflect.Type) (reflect.Value, bool) + func (c *Converter) Convert(src, dest interface{}, flags FieldMatchingFlags, meta *Meta) error + func (c *Converter) DefaultConvert(src, dest interface{}, flags FieldMatchingFlags, meta *Meta) error + func (c *Converter) DefaultMeta(t reflect.Type) (FieldMatchingFlags, *Meta) + func (c *Converter) HasConversionFunc(inType, outType reflect.Type) bool + func (c *Converter) IsConversionIgnored(inType, outType reflect.Type) bool + func (c *Converter) RegisterConversionFunc(conversionFunc interface{}) error + func (c *Converter) RegisterDefaultingFunc(defaultingFunc interface{}) error + func (c *Converter) RegisterGeneratedConversionFunc(conversionFunc interface{}) error + func (c *Converter) RegisterIgnoredConversion(from, to interface{}) error + func (c *Converter) RegisterInputDefaults(in interface{}, fn FieldMappingFunc, defaultFlags FieldMatchingFlags) error + func (c *Converter) SetStructFieldCopy(srcFieldType interface{}, srcFieldName string, destFieldType interface{}, ...) error + func (c *Converter) WithConversions(fns ConversionFuncs) *Converter + type DebugLogger interface + Logf func(format string, args ...interface{}) + type Equalities struct + func EqualitiesOrDie(funcs ...interface{}) Equalities + type FieldMappingFunc func(key string, sourceTag, destTag reflect.StructTag) (source string, dest string) + type FieldMatchingFlags int + const AllowDifferentFieldTypeNames + const DestFromSource + const IgnoreMissingFields + const SourceToDest + func (f FieldMatchingFlags) IsSet(flag FieldMatchingFlags) bool + type GeneratedDeepCopyFunc struct + Fn func(in interface{}, out interface{}, c *Cloner) error + InType reflect.Type + type GenericConversionFunc func(a, b interface{}, scope Scope) (bool, error) + type Meta struct + Context interface{} + KeyNameMapping FieldMappingFunc + type NameFunc func(t reflect.Type) string + type Scope interface + Convert func(src, dest interface{}, flags FieldMatchingFlags) error + DefaultConvert func(src, dest interface{}, flags FieldMatchingFlags) error + DefaultingInterface func(inType reflect.Type) (interface{}, bool) + DestTag func() reflect.StructTag + Flags func() FieldMatchingFlags + Meta func() *Meta + SrcTag func() reflect.StructTag