You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What tags would I need to ensure that team_id and repository is not double quoted ?
I couldn't find any info on the different types of tags that are supported.
The text was updated successfully, but these errors were encountered:
gohcl is a high-level abstraction for simple cases primarily involving static values, and so it does not support all possible expression types such as references to variables.
To generate something like this you'll need to use the lower-level hclwrite API, which gives more detailed control over the expressions in the output.
The "GenerateFromScratch" example shown in the documentation includes a mixture of constant values and references to variables ("traversals" in HCL's terminology), so hopefully you can see from that example how to adapt it to produce a structure like you've shown.
I'm trying to generate HCL using gohcl, and was wondering how to make sure the generator does not put quotes around strings.
If I use the following struct,
Then all fields would be quoted in the output.
What tags would I need to ensure that
team_id
andrepository
is not double quoted ?I couldn't find any info on the different types of tags that are supported.
The text was updated successfully, but these errors were encountered: