func eventAsEnvVariables(event *mms.ProductEvent) ([]string, error) {
	envSet, err := env.Marshal(event)
	if err != nil {
		return []string{}, fmt.Errorf("failed to serialie product event to env vars: %s", err)
	}
	var envVars []string
	for name, value := range envSet {
		envVars = append(envVars, fmt.Sprintf("%s=%s", name, value))
	}
	return envVars, nil
}
// eventAsEnvVariables creates a list of environment variables, one var for each ProductEvent attribute.
eventAsEnvVariables creates a list of environment variables, one var for each ProductEvent attribute.
// eventAsEnvVariables creates a list of environment variables one var for each ProductEvent attribute .
func eventAsEnvVariables(event *mms.ProductEvent) ([]string, error) {
	envSet, err := env.Marshal(event)
	if err != nil {
		return []string{}, fmt.Errorf("failed to serialie product event to env vars: %s", err)
	}
	var envVars []string
	for name, value := range envSet {
		envVars = append(envVars, fmt.Sprintf("%s=%s", name, value))
	}
	return envVars, nil
}
func eventAsEnvVariables ( event * mms . ProductEvent ) ( [ ] string , error ) { envSet , err := env . Marshal ( event ) if err != nil { return [ ] string { } , fmt . Errorf ( " " , err ) } var envVars [ ] string for name , value := range envSet { envVars = append ( envVars , fmt . Sprintf ( " " , name , value ) ) } return envVars , nil }
eventAsEnvVariables creates a list of environment variables, one var for each ProductEvent attribute.
eventAsEnvVariables creates a list of environment variables one var for each ProductEvent attribute .