Versions in this module Expand all Collapse all v0 v0.1.2 Feb 26, 2021 v0.1.1 Feb 26, 2021 Changes in this version + const OperationAdd + const OperationCopy + const OperationMove + const OperationRemove + const OperationReplace + const OperationTest + type Operation struct + From pointer + OldValue interface{} + Path pointer + Type string + Value interface{} + func (o Operation) MarshalJSON() ([]byte, error) + func (o Operation) String() string + type Option func(*differ) + func Factorize() Option + func Invertible() Option + func Rationalize() 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