Versions in this module Expand all Collapse all v0 v0.6.2 Jul 10, 2024 v0.6.1 Jul 10, 2024 Changes in this version + const OperationAdd + const OperationCopy + const OperationMove + const OperationRemove + const OperationReplace + const OperationTest + type Differ struct + func (d *Differ) Compare(src, tgt interface{}) + func (d *Differ) Patch() Patch + func (d *Differ) Reset() + func (d *Differ) WithOpts(opts ...Option) *Differ + type Operation struct + From string + OldValue interface{} + Path string + Type string + Value interface{} + func (o Operation) MarshalJSON() ([]byte, error) + func (o Operation) String() string + type Option func(*Differ) + func Equivalent() Option + func Factorize() Option + func Ignores(ptrs ...string) Option + func InPlaceCompaction() Option + func Invertible() Option + func LCS() Option + func MarshalFunc(fn marshalFunc) Option + func Rationalize() Option + func SkipCompact() Option + func UnmarshalFunc(fn unmarshalFunc) Option + type Patch []Operation + func Compare(source, target interface{}, opts ...Option) (Patch, error) + func CompareJSON(source, target []byte, opts ...Option) (Patch, error) + func CompareWithoutMarshal(source, target interface{}, opts ...Option) (patch Patch, err error) + func (p *Patch) String() string