func Schema(extra environschema.Fields) (environschema.Fields, error) {
	fields := make(environschema.Fields)
	for name, field := range configSchema {
		if controller.ControllerOnlyAttribute(name) {
			return nil, errors.Errorf("config field %q clashes with controller config", name)
		}
		fields[name] = field
	}
	for name, field := range extra {
		if controller.ControllerOnlyAttribute(name) {
			return nil, errors.Errorf("config field %q clashes with controller config", name)
		}
		if _, ok := fields[name]; ok {
			return nil, errors.Errorf("config field %q clashes with global config", name)
		}
		fields[name] = field
	}
	return fields, nil
}
// Schema returns a configuration schema that includes both
// the given extra fields and all the fields defined in this package.
// It returns an error if extra defines any fields defined in this
// package.
Schema returns a configuration schema that includes both
the given extra fields and all the fields defined in this package.
It returns an error if extra defines any fields defined in this
package.
// Schema returns a configuration schema that includes both // the given extra fields and all the fields defined in this package . // It returns an error if extra defines any fields defined in this // package .
func Schema(extra environschema.Fields) (environschema.Fields, error) {
	fields := make(environschema.Fields)
	for name, field := range configSchema {
		if controller.ControllerOnlyAttribute(name) {
			return nil, errors.Errorf("config field %q clashes with controller config", name)
		}
		fields[name] = field
	}
	for name, field := range extra {
		if controller.ControllerOnlyAttribute(name) {
			return nil, errors.Errorf("config field %q clashes with controller config", name)
		}
		if _, ok := fields[name]; ok {
			return nil, errors.Errorf("config field %q clashes with global config", name)
		}
		fields[name] = field
	}
	return fields, nil
}
func Schema ( extra environschema . Fields ) ( environschema . Fields , error ) { fields := make ( environschema . Fields ) for name , field := range configSchema { if controller . ControllerOnlyAttribute ( name ) { return nil , errors . Errorf ( " " , name ) } fields [ name ] = field } for name , field := range extra { if controller . ControllerOnlyAttribute ( name ) { return nil , errors . Errorf ( " " , name ) } if _ , ok := fields [ name ] ; ok { return nil , errors . Errorf ( " " , name ) } fields [ name ] = field } return fields , nil }
Schema returns a configuration schema that includes both
the given extra fields and all the fields defined in this package.
Schema returns a configuration schema that includes both the given extra fields and all the fields defined in this package .