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