gitlab.com/evatix-go/core@v1.3.55/isany/StringEqual.go (about)

     1  package isany
     2  
     3  import "gitlab.com/evatix-go/core/internal/strutilinternal"
     4  
     5  func StringEqual(
     6  	left, right interface{},
     7  ) bool {
     8  	leftString := strutilinternal.AnyToFieldNameString(left)
     9  	rightString := strutilinternal.AnyToFieldNameString(right)
    10  
    11  	return leftString == rightString
    12  }