Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare(reference proto.Message, current proto.Message, includeUnknownFields bool, registry *fcproto.Registry, bytesEncoding string) (referenceJSON string, currentJSON string, isDifferent bool, err error)
Compare marshals both proto messages to JSON and returns their representations along with whether they differ. The returned JSON strings are normalized (sorted keys, consistent indentation) for use with diffx.WriteJSONDiff.
Types ¶
type BlockDifferences ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.