// MarshalMapPfx marshals input map or struct to a map. the keys are prefixed with pfx.
MarshalMapPfx marshals input map or struct to a map. the keys are prefixed with pfx.
// MarshalMapPfx marshals input map or struct to a map . the keys are prefixed with pfx .
func MarshalMapPfx(i interface{}, pfx string) (m map[string]string, err error) {
	m = map[string]string{}
	env, err := marshal(i, pfx)
	for _, e := range env {
		idx := strings.Index(e, "=")
		key := e[:idx]
		val := e[idx+1:]
		m[key] = val
	}
	return
}
func MarshalMapPfx ( i interface { } , pfx string ) ( m map [ string ] string , err error ) { m = map [ string ] string { } env , err := marshal ( i , pfx ) for _ , e := range env { idx := strings . Index ( e , " " ) key := e [ : idx ] val := e [ idx + 1 : ] m [ key ] = val } return }
MarshalMapPfx marshals input map or struct to a map.
MarshalMapPfx marshals input map or struct to a map .