Versions in this module Expand all Collapse all v1 v1.0.1 Apr 11, 2025 Changes in this version + var DefaultProtoConverters = []TypeConverter + var TimeToTimestamp = TypeConverter + var TimestampToTime = TypeConverter + func Copy(toValue interface{}, fromValue interface{}) (err error) + func CopyWithOption(toValue interface{}, fromValue interface{}, opt CopyOption) (err error) + func Diff(oldStruct, newStruct interface{}) (map[string][2]interface{}, error) + func Flatten(data interface{}) map[string]interface + func InjectDefaults(ptr interface{}) error + func TrackWithHistory(oldStruct, newStruct interface{}) (map[string]result, error) + func Unflatten(flatMap map[string]interface{}, result interface{}) error + type Actions string + const Add + const Change + const Remove + type Converter interface + BinaryToStruct func(data []byte, result interface{}) error + DecodeFromString func(data string, result interface{}) error + DecodeFromStringSafe func(data string, result interface{}) error + EncodeToString func(data interface{}) (string, error) + EncodeToStringSafe func(data interface{}) (string, error) + StructToBinary func(data interface{}) ([]byte, error) + func NewConverter() Converter + type CopyOption struct + CaseSensitive bool + Converters []TypeConverter + DeepCopy bool + FieldNameMapping []FieldNameMapping + IgnoreEmpty bool + func WithOptionsProtobuf(options ...CopyOption) CopyOption + type FieldNameMapping struct + DstType interface{} + Mapping map[string]string + SrcType interface{} + type TypeConverter struct + DstType interface{} + Fn func(src interface{}) (dst interface{}, err error) + SrcType interface{} v1.0.0 Mar 22, 2025