Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShouldDiffMultilineStrings ¶
ShouldDiffMultilineStrings Checks if two values should be diffed as multiline strings. It checks if both values are strings, and if they have a common line, without checking for a common line, we might end up mistaking a deletion as an update. This function is used to determine if we should diff the elements in the slices instead of marking them as deleted and created. Primarily used for collections.ShouldDiffElement callback.
Types ¶
type JsonOpts ¶
type JsonOpts struct {
Primitive TransformPrimitiveJson
Object TransformObjectJson
Array TransformArrayJson
Unknown TransformUnknownJson
Sensitive TransformSensitiveJson
TypeChange TransformTypeChangeJson
}
JsonOpts defines the external callback functions that callers should implement to process the supplied diffs.
type TransformObjectJson ¶
type TransformPrimitiveJson ¶
type TransformSensitiveJson ¶
type TransformTypeChangeJson ¶
type TransformUnknownJson ¶
Click to show internal directories.
Click to hide internal directories.