github.com/hedzr/evendeep@v0.4.8/deepequal.go (about)

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