-
Format is HCL language feature: https://github.com/hashicorp/hcl/blob/main/hclwrite/public.go
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
We built Lingon (https://github.com/volvo-cars/lingon/tree/main/docs/terraform) to generate terraform HCL from Go code. It might be useful or at least a good reference of using the hclwrite package:
-
terraform
Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
Source for what terraform fmt does: https://github.com/hashicorp/terraform/blob/main/internal/repl/format.go