Versions in this module Expand all Collapse all v1 v1.0.0 Sep 22, 2026 Changes in this version + const ChangeTypeCreate + const ChangeTypeDelete + const ChangeTypeUpdate + const PathKinField + const PathKindIndex + const PathKindKey + const PathKindRoot + type Change struct + Error string + From interface{} + Path *Path + To interface{} + Type ChangeType + type ChangeLog struct + Changes []*Change + func (l *ChangeLog) Err() error + func (l *ChangeLog) ToChangeRecords(options ...LogOption) []*ChangeRecord + type ChangeRecord struct + Change string + Error string + From interface{} + Path string + Source string + SourceID interface{} + To interface{} + UserID interface{} + type ChangeType string + type Differ interface + Diff func(ctx context.Context, from, to any, options ...Option) (*ChangeLog, error) + type LogOption func(l *logOptions) + func WithSource(source string) LogOption + func WithSourceID(id interface{}) LogOption + func WithUserID(userID interface{}) LogOption + type Option func(o *Options) + func WithSetMarker(f bool) Option + func WithShallow(f bool) Option + type Options struct + WithSetMarker bool + WithShallow bool + func (o *Options) Apply(opts ...Option) + type Path struct + Index int + Key interface{} + Kind PathKind + Name string + Path *Path + func (p *Path) Element(index int) *Path + func (p *Path) Entry(name string) *Path + func (p *Path) Field(name string) *Path + func (p *Path) String() string + type PathKind int