Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶ added in v0.34.0
Diff returns a string representation of the difference between two objects. When built without the usegocmp tag, it uses go-difflib/difflib to generate a unified diff of the objects. It attempts to use JSON serialization first, falling back to an object dump via the dump package if JSON marshaling fails.
func ObjectGoPrintSideBySide ¶
func ObjectGoPrintSideBySide(a, b interface{}) string
ObjectGoPrintSideBySide prints a and b as textual dumps side by side, enabling easy visual scanning for mismatches.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.