Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for legacyDiff (0.08 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/diff/diff.go

    	"github.com/google/go-cmp/cmp"
    	"k8s.io/apimachinery/pkg/util/dump"
    )
    
    func legacyDiff(a, b interface{}) string {
    	return cmp.Diff(a, b)
    }
    
    // StringDiff diffs a and b and returns a human readable diff.
    // DEPRECATED: use github.com/google/go-cmp/cmp.Diff
    func StringDiff(a, b string) string {
    	return legacyDiff(a, b)
    }
    
    // ObjectDiff prints the diff of two go objects and fails if the objects
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top