Skip to content

Commit

Permalink
add comment of which func to use
Browse files Browse the repository at this point in the history
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
  • Loading branch information
t-kikuc committed Apr 23, 2024
1 parent 59f3171 commit 77dcef7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (d *differ) initIgnoredPaths(key string) {
}

// DiffUnstructureds calculates the diff between two unstructured objects.
// If you compare non-k8s manifests, use DiffStructureds instead.
func DiffUnstructureds(x, y unstructured.Unstructured, key string, opts ...Option) (*Result, error) {
var (
path = []PathStep{}
Expand All @@ -99,6 +100,7 @@ func DiffUnstructureds(x, y unstructured.Unstructured, key string, opts ...Optio
}

// DiffStructureds calulates the diff between non-k8s manifests.
// If you compare k8s manifests, use DiffUnstructureds instead.
func DiffStructureds(x, y interface{}, opts ...Option) (*Result, error) {
map_x := map[string]interface{}{}
map_y := map[string]interface{}{}
Expand Down

0 comments on commit 77dcef7

Please sign in to comment.