# Functions
AllowTypeMismatch changed behaviour to report value as "updated" when its type has changed instead of error.
No description provided by the author
Changed returns true if both values differ.
ConvertTypes enables values that are convertible to the target type to be converted when patching.
复制两个结构 并比较两个结构体的差异.
CustomValueDiffers allows you to register custom differs for specific types.
Diff returns a changelog of all mutated values from both.
指定类型变更的字段.
指定类型变更的字段.
DisableStructValues disables populating a separate change for each item in a struct, where the struct is being compared to a nil value.
DiscardComplexOrigin - by default, we are now keeping the complex struct associated with a create entry.This allows us to fix the merge to new object issue of not having enough change log details when allocatingnew objects.
Filter allows you to determine which fields the differ descends into.
FlattenEmbeddedStructs determines whether fields of embedded structs should behave as if they are directly under the parent.
No description provided by the author
NewChangeValue idiomatic constructor (also invokes render).
NewComparativeList : returns a new comparative list.
NewDiffer creates a new configurable diffing object.
No description provided by the author
NewError just give me a plain error.
NewErrorf just give me a plain error with formatting.
NewPatchLogEntry converts our complicated reflection based struct toa simpler format for the consumer.
No description provided by the author
SliceOrdering determines whether the ordering of items in a slice results in a change.
StructMapKeySupport - Changelog paths do not provided structured object values for maps that contain complexkeys (such as other structs).
StructValues gets all values from a struct values are stored as "created" or "deleted" entries in the changelog, depending on the change type specified.
TagName sets the tag name to use when getting field names and options.
# Constants
No description provided by the author
No description provided by the author
CREATE represents when an element has been added.
DELETE represents when an element has been removed.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UPDATE represents when an element has been updated.
# Variables
ErrInvalidChangeType The specified change values are not unsupported.
ErrTypeMismatch Compared types do not match.
# Structs
Change stores information about a changed item.
ChangeValue is a specialized struct for monitoring patching.
Comparative ...
ComparativeList : stores indexed comparative.
Differ a configurable diff instance.
our own version of an error, which can wrap others.
No description provided by the author
PatchLogEntry defines how a DiffLog entry was applied.
# Interfaces
ValueDiffer is an interface for custom differs.
# Type aliases
Changelog stores a list of changed items.
DiffFunc represents the built-in diff functions.
DiffType represents an enum with all the supported diff types.
FilterFunc is a function that determines whether to descend into a struct field.
Not strictly necessary but might be nice in some casesgo:generate stringer -type=PatchFlags.
No description provided by the author