apimachinery: k8s.io/apimachinery/pkg/util/diff Index | Files

package diff

import "k8s.io/apimachinery/pkg/util/diff"

Index

Package Files

diff.go

func ObjectDiff Uses

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 Uses

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 Uses

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 Uses

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 Uses

func StringDiff(a, b string) string

StringDiff diffs a and b and returns a human readable diff.

Package diff imports 6 packages (graph) and is imported by 113 packages. Updated 2019-05-15. Refresh now. Tools for package owners.