github.com/ipld/go-ipld-prime@v0.21.0/operations.go (about) 1 package ipld 2 3 import ( 4 "github.com/ipld/go-ipld-prime/datamodel" 5 ) 6 7 // DeepEqual reports whether x and y are "deeply equal" as IPLD nodes. 8 // This is similar to reflect.DeepEqual, but based around the Node interface. 9 // 10 // This is exactly equivalent to the datamodel.DeepEqual function. 11 func DeepEqual(x, y Node) bool { 12 return datamodel.DeepEqual(x, y) 13 }