// GetSchoolByEmailDomain returns the school associated with the given email domain, or nil if it doesn't exist.
GetSchoolByEmailDomain returns the school associated with the given email domain, or nil if it doesn't exist.
// GetSchoolByEmailDomain returns the school associated with the given email domain or nil if it doesn ' t exist .
func (r *Registry) GetSchoolByEmailDomain(domain string) (data.School, error) {
	for _, school := range r.schoolList {
		if school.EmailDomain() == domain {
			return school, nil
		}
	}
	return nil, data.ErrNotFound
}
func ( r * Registry ) GetSchoolByEmailDomain ( domain string ) ( data . School , error ) { for _ , school := range r . schoolList { if school . EmailDomain ( ) == domain { return school , nil } } return nil , data . ErrNotFound }
GetSchoolByEmailDomain returns the school associated with the given email domain, or nil if it doesn't exist.
GetSchoolByEmailDomain returns the school associated with the given email domain or nil if it doesn ' t exist .