// Compare two slices irrespective of elements order.
Compare two slices irrespective of elements order.
// Compare two slices irrespective of elements order .
func IsEqualSlices(a, b []string) bool {
	if len(a) != len(b) {
		return false
	}
	a_copy := make([]string, len(a))
	b_copy := make([]string, len(b))
	copy(a_copy, a)
	copy(b_copy, b)
	sort.Strings(a_copy)
	sort.Strings(b_copy)
	return reflect.DeepEqual(a_copy, b_copy)
}
func IsEqualSlices ( a , b [ ] string ) bool { if len ( a ) != len ( b ) { return false } a_copy := make ( [ ] string , len ( a ) ) b_copy := make ( [ ] string , len ( b ) ) copy ( a_copy , a ) copy ( b_copy , b ) sort . Strings ( a_copy ) sort . Strings ( b_copy ) return reflect . DeepEqual ( a_copy , b_copy ) }
Compare two slices irrespective of elements order.
Compare two slices irrespective of elements order .