Additional Struct Tags #245
Answered
by
stephenafamo
safaci2000
asked this question in
Q&A
-
According to the documentation there is a configuration that allows the user to set "tags. https://bob.stephenafamo.com/docs/code-generation/configuration/ Given that here's my configuration:
I'm seeing the db tag, but also omitting the value still seems to generate that, but the json tag is not being generated. Is there something I can to to ensure the JSON tag gets generated? Or is there a list of tags that are supported? |
Beta Was this translation helpful? Give feedback.
Answered by
stephenafamo
Jun 27, 2024
Replies: 1 comment 1 reply
-
The tags: ["db", "json"]
struct_tag_casing: snake
wipe: true
psql:
dsn: "postgres://ht_controller_user:[email protected]:5432/funcap_controller?sslmode=disable"
wire: true # I don't think this does anything
shared_schema: false
no_factory: true
pkgname: "bobs"
output: "internal/dbmodels/bobs"
schemas:
- funcap |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
stephenafamo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
tags
should be outside thepsql
block. Along with a few other options