Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: nexted prefix order with inline #54

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

hori-ryota
Copy link
Contributor

Description

Fix nested prefix order.

	type Owner struct {
		Name string `csv:"name"`
	}

	type Address struct {
		Owner  Owner  `csv:"owner_,inline"`
	}

	type User struct {
		Address     Address `csv:"address,inline"`
	}

got owner_address_name; want address_owner_name

Checklist

  • Code compiles without errors
  • Added new tests for the provided functionality
  • All tests are passing
  • Updated the README and/or documentation, if necessary

@jszwec
Copy link
Owner

jszwec commented Jun 29, 2022

nice catch! looks good to me, thanks!

@jszwec jszwec merged commit 2b7b86b into jszwec:master Jun 29, 2022
@jszwec
Copy link
Owner

jszwec commented Jun 29, 2022

released v1.7.1 with this patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants