package diff
import "k8s.io/apimachinery/pkg/util/diff"
Index ¶
Functions ¶
func Diff ¶
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.
Source Files ¶
diff.go legacy_diff.go
- Version
- v0.34.0-beta.0
- Published
- Jul 15, 2025
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 11 hours ago –
Tools for package owners.