diff

package
v0.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2025 License: Apache-2.0 Imports: 7 Imported by: 711

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff added in v0.34.0

func Diff(a, b any) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL