github.com/hedzr/evendeep@v0.4.8/deepdiff.go (about) 1 package evendeep 2 3 import ( 4 "github.com/hedzr/evendeep/diff" 5 "github.com/hedzr/evendeep/typ" 6 ) 7 8 // DeepDiff compares a and b deeply inside. 9 // 10 // delta, equal := evendeep.DeepDiff(a, b) 11 // fmt.Println(delta) 12 // fmt.Println(delta.PrettyPrint()) 13 func DeepDiff(a, b typ.Any, opts ...diff.Opt) (delta diff.Diff, equal bool) { 14 return diff.New(a, b, opts...) 15 }