// MarshalPfxAndSet marshals input map or struct and the sets all values to the environment. the keys are prefixed with pfx.
MarshalPfxAndSet marshals input map or struct and the sets all values to the environment. the keys are prefixed with pfx.
// MarshalPfxAndSet marshals input map or struct and the sets all values to the environment . the keys are prefixed with pfx .
func MarshalPfxAndSet(i interface{}, pfx string) error {
	m, err := MarshalMapPfx(i, pfx)
	if err != nil {
		return err
	}
	for k, v := range m {
		err = os.Setenv(k, v)
		if err != nil {
			return err
		}
	}
	return nil
}
func MarshalPfxAndSet ( i interface { } , pfx string ) error { m , err := MarshalMapPfx ( i , pfx ) if err != nil { return err } for k , v := range m { err = os . Setenv ( k , v ) if err != nil { return err } } return nil }
MarshalPfxAndSet marshals input map or struct and the sets all values to the environment.
MarshalPfxAndSet marshals input map or struct and the sets all values to the environment .