func (rt Type) Validate() error {
	// Ideally, only the (unavoidable) zero value would be invalid.
	// However, typedef'ing int means that the use of int literals
	// could result in invalid Type values other than the zero value.
	if _, ok := types[rt]; !ok {
		return errors.NewNotValid(nil, "unknown resource type")
	}
	return nil
}
// Validate ensures that the type is valid.
Validate ensures that the type is valid.
// Validate ensures that the type is valid .
func (rt Type) Validate() error {
	if _, ok := types[rt]; !ok {
		return errors.NewNotValid(nil, "unknown resource type")
	}
	return nil
}
func ( rt Type ) Validate ( ) error { if _ , ok := types [ rt ] ; ! ok { return errors . NewNotValid ( nil , " " ) } return nil }
Validate ensures that the type is valid.
Validate ensures that the type is valid .
// Ideally, only the (unavoidable) zero value would be invalid. // However, typedef'ing int means that the use of int literals // could result in invalid Type values other than the zero value.