// MarshalAndSet marshals input map or struct and the sets all values to the environment
MarshalAndSet marshals input map or struct and the sets all values to the environment
// MarshalAndSet marshals input map or struct and the sets all values to the environment
func MarshalAndSet(i interface{}) error {
	m, err := MarshalMap(i)
	if err != nil {
		return err
	}
	for k, v := range m {
		err = os.Setenv(k, v)
		if err != nil {
			return err
		}
	}
	return nil
}
func MarshalAndSet ( i interface { } ) error { m , err := MarshalMap ( i ) if err != nil { return err } for k , v := range m { err = os . Setenv ( k , v ) if err != nil { return err } } return nil }
MarshalAndSet marshals input map or struct and the sets all values to the environment
MarshalAndSet marshals input map or struct and the sets all values to the environment