Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonOpts ¶
type JsonOpts struct { Primitive TransformPrimitiveJson Object TransformObjectJson Array TransformArrayJson TypeChange TransformTypeChangeJson }
JsonOpts defines the external callback functions that callers should implement to process the supplied diffs.
func (JsonOpts) Transform ¶
func (opts JsonOpts) Transform(before, after interface{}, beforeExplicit, afterExplicit bool, relevantAttributes attribute_path.Matcher) computed.Diff
Transform accepts a generic before and after value that is assumed to be JSON formatted and transforms it into a computed.Diff, using the callbacks supplied in the JsonOpts class.
type TransformObjectJson ¶
type TransformPrimitiveJson ¶
type TransformTypeChangeJson ¶
Click to show internal directories.
Click to hide internal directories.