func oneOfValues(checker schema.Checker, values []interface{}) (schema.Checker, error) {
	cvalues := make([]interface{}, len(values))
	for i, v := range values {
		cv, err := checker.Coerce(v, nil)
		if err != nil {
			return nil, fmt.Errorf("invalid enumerated value: %v", err)
		}
		cvalues[i] = cv
	}
	return oneOfValuesChecker{
		vals:    cvalues,
		checker: checker,
	}, nil
}
// oneOfValues returns a checker that coerces its value
// using the supplied checker, then checks that the
// resulting value is equal to one of the given values.
oneOfValues returns a checker that coerces its value
using the supplied checker, then checks that the
resulting value is equal to one of the given values.
// oneOfValues returns a checker that coerces its value // using the supplied checker then checks that the // resulting value is equal to one of the given values .
func oneOfValues(checker schema.Checker, values []interface{}) (schema.Checker, error) {
	cvalues := make([]interface{}, len(values))
	for i, v := range values {
		cv, err := checker.Coerce(v, nil)
		if err != nil {
			return nil, fmt.Errorf("invalid enumerated value: %v", err)
		}
		cvalues[i] = cv
	}
	return oneOfValuesChecker{
		vals:    cvalues,
		checker: checker,
	}, nil
}
func oneOfValues ( checker schema . Checker , values [ ] interface { } ) ( schema . Checker , error ) { cvalues := make ( [ ] interface { } , len ( values ) ) for i , v := range values { cv , err := checker . Coerce ( v , nil ) if err != nil { return nil , fmt . Errorf ( " " , err ) } cvalues [ i ] = cv } return oneOfValuesChecker { vals : cvalues , checker : checker , } , nil }
oneOfValues returns a checker that coerces its value
using the supplied checker, then checks that the
resulting value is equal to one of the given values.
oneOfValues returns a checker that coerces its value using the supplied checker then checks that the resulting value is equal to one of the given values .