// EnvironmentFromName returns an Environment based on the common name specified.
EnvironmentFromName returns an Environment based on the common name specified.
// EnvironmentFromName returns an Environment based on the common name specified .
func SettingFromName(name string) (Setting, error) {
	name = strings.ToUpper(name)
	env, ok := settings[name]
	if !ok {
		return env, fmt.Errorf("autorest/azure: There is no cloud environment matching the name %q", name)
	}
	return env, nil
}
func SettingFromName ( name string ) ( Setting , error ) { name = strings . ToUpper ( name ) env , ok := settings [ name ] if ! ok { return env , fmt . Errorf ( " " , name ) } return env , nil }
EnvironmentFromName returns an Environment based on the common name specified.
EnvironmentFromName returns an Environment based on the common name specified .