Versions in this module Expand all Collapse all v0 v0.0.2 May 9, 2023 v0.0.1 May 9, 2023 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 Invertible() Option + func MarshalFunc(fn marshalFunc) Option + func OmitEmpty() Option + func Rationalize() Option + func UnmarshalFunc(fn unmarshalFunc) Option + type Patch []Operation + func Compare(source, target interface{}) (Patch, error) + func CompareJSON(source, target []byte) (Patch, error) + func CompareJSONOpts(source, target []byte, opts ...Option) (Patch, error) + func CompareOpts(source, target interface{}, opts ...Option) (Patch, error) + func (p *Patch) String() string