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
It would be great to add an example on how create template interpolations in GenerateFromScratch) Example.
I would like to generate something like this:
string = "${local.hostname}.${local.domain}"
With the following code:
func TestSimple(t *testing.T) { f := hclwrite.NewEmptyFile() rootBody := f.Body() rootBody.SetAttributeValue("string", cty.StringVal("${local.hostname}.${local.domain}")) fmt.Println(string(f.Bytes())) }
Output:
string = "$${local.hostname}.$${local.domain}"
The text was updated successfully, but these errors were encountered:
Found a workaround: zclconf/go-cty#24
Sorry, something went wrong.
No branches or pull requests
It would be great to add an example on how create template interpolations in GenerateFromScratch) Example.
HCL Template
I would like to generate something like this:
With the following code:
Expected behavior
Output:
Actual behavior
Output:
The text was updated successfully, but these errors were encountered: