func (f Facility) Validate() error {
	if f == facilityDefault {
		return nil
	}
	if f < 0 || f >= facilityTooLarge {
		return fmt.Errorf("facility %d not recognized", f)
	}
	return nil
}
// Validate ensures that the facility is correct.
Validate ensures that the facility is correct.
// Validate ensures that the facility is correct .
func (f Facility) Validate() error {
	if f == facilityDefault {
		return nil
	}
	if f < 0 || f >= facilityTooLarge {
		return fmt.Errorf("facility %d not recognized", f)
	}
	return nil
}
func ( f Facility ) Validate ( ) error { if f == facilityDefault { return nil } if f < 0 || f >= facilityTooLarge { return fmt . Errorf ( " " , f ) } return nil }
Validate ensures that the facility is correct.
Validate ensures that the facility is correct .