package diff
import "k8s.io/apimachinery/pkg/util/diff"
Index ¶
- func ObjectDiff(a, b interface{}) string
- func ObjectGoPrintDiff(a, b interface{}) string
- func ObjectGoPrintSideBySide(a, b interface{}) string
- func ObjectReflectDiff(a, b interface{}) string
- func StringDiff(a, b string) string
Functions ¶
func ObjectDiff ¶
func ObjectDiff(a, b interface{}) string
ObjectDiff prints the diff of two go objects and fails if the objects contain unhandled unexported fields. DEPRECATED: use github.com/google/go-cmp/cmp.Diff
func ObjectGoPrintDiff ¶
func ObjectGoPrintDiff(a, b interface{}) string
ObjectGoPrintDiff prints the diff of two go objects and fails if the objects contain unhandled unexported fields. DEPRECATED: use github.com/google/go-cmp/cmp.Diff
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.
func ObjectReflectDiff ¶
func ObjectReflectDiff(a, b interface{}) string
ObjectReflectDiff prints the diff of two go objects and fails if the objects contain unhandled unexported fields. DEPRECATED: use github.com/google/go-cmp/cmp.Diff
func StringDiff ¶
StringDiff diffs a and b and returns a human readable diff.
Source Files ¶
diff.go
- Version
- v0.15.9
- Published
- Oct 4, 2019
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 14 hours ago –
Tools for package owners.