Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + var ErrDifferentArgumentsTypes = errors.New("src and dst must be of same type") + var ErrExpectedMapAsDestination = errors.New("dst was expected to be a map") + var ErrExpectedStructAsDestination = errors.New("dst was expected to be a struct") + var ErrNilArguments = errors.New("src and dst must not be nil") + var ErrNonPointerAgument = errors.New("dst must be a pointer") + var ErrNotSupported = errors.New("only structs and maps are supported") + func Map(dst, src interface{}, opts ...func(*Config)) error + func MapWithOverwrite(dst, src interface{}, opts ...func(*Config)) error + func Merge(dst, src interface{}, opts ...func(*Config)) error + func MergeWithOverwrite(dst, src interface{}, opts ...func(*Config)) error + func WithAppendSlice(config *Config) + func WithOverride(config *Config) + func WithOverrideEmptySlice(config *Config) + func WithOverwriteWithEmptyValue(config *Config) + func WithSliceDeepCopy(config *Config) + func WithTransformers(transformers Transformers) func(*Config) + func WithTypeCheck(config *Config) + type Config struct + AppendSlice bool + Overwrite bool + Transformers Transformers + TypeCheck bool + type Transformers interface + Transformer func(reflect.Type) func(dst, src reflect.Value) error