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

feature: support different case style for different format #1336

Merged

Conversation

c9s
Copy link
Contributor

@c9s c9s commented Dec 21, 2023

implements #1321

  • make the template easier to extend fields
  • refactor template functions
  • define tag case style constants

usage example

[struct-tag-cases]
toml = "snake"
yaml = "camel"
json = "camel"
boil = "alias"

@c9s c9s force-pushed the c9s/custom-struct-tag-cases-issue-1321 branch from 4610784 to 7610eaf Compare December 21, 2023 09:49
@c9s c9s force-pushed the c9s/custom-struct-tag-cases-issue-1321 branch from 7610eaf to e1fc318 Compare December 21, 2023 10:00
c9s added 3 commits December 21, 2023 18:00
- also make the template easier to extend fields
- refactor template functions
- define tag case style constants
@c9s c9s force-pushed the c9s/custom-struct-tag-cases-issue-1321 branch from e1fc318 to 8ca9693 Compare December 21, 2023 10:00
@c9s c9s changed the title feature: define StructTagCases to support multiple case style feature: support different case style for different format Dec 21, 2023
@c9s
Copy link
Contributor Author

c9s commented Dec 22, 2023

@stephenafamo plz take a look, thanks!

@stephenafamo stephenafamo merged commit f10c023 into volatiletech:master Jan 2, 2024
2 checks passed
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