We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
JSON tag naming style can be configurable,
various options like (e.g. snake case or camel case), by default use columnName
The text was updated successfully, but these errors were encountered:
feat(generate): allow user specify tag name stragety
6e3b267
close #234
There are two way to diy json tag name strategy,
global:
g.WithJSONTagNameStrategy(func(col string) (tag string) { return col + "_" })
scope:
g.ApplyBasic(g.GenerateModel("table", gen.FieldJSONTagWithNS(func(col string) (tag string) { return col+"_" })))
Sorry, something went wrong.
feat(generate): allow user specify tag name stragety (#239)
29e55ba
* feat(generate): allow user specify tag name stragety close #234 * style(generate): name return value
tr1v3r
Successfully merging a pull request may close this issue.
Describe the feature
JSON tag naming style can be configurable,
various options like (e.g. snake case or camel case), by default use columnName
The text was updated successfully, but these errors were encountered: