// IsEqualTo returns true if the provided list contains all the same servers
// as this list.
IsEqualTo returns true if the provided list contains all the same servers
as this list.
// IsEqualTo returns true if the provided list contains all the same servers // as this list .
func (r Servers) IsEqualTo(other Servers) bool {
	if len(r) != len(other) {
		return false
	}
	for _, server := range r {
		otherServer := other.FindByIP(server.AdvertiseIP)
		if otherServer == nil {
			return false
		}
		if !otherServer.IsEqualTo(server) {
			return false
		}
	}
	return true
}
func ( r Servers ) IsEqualTo ( other Servers ) bool { if len ( r ) != len ( other ) { return false } for _ , server := range r { otherServer := other . FindByIP ( server . AdvertiseIP ) if otherServer == nil { return false } if ! otherServer . IsEqualTo ( server ) { return false } } return true }
IsEqualTo returns true if the provided list contains all the same servers
as this list.
IsEqualTo returns true if the provided list contains all the same servers as this list .