https://pulumi.com logo
#general
Title
# general
s

stocky-spoon-28903

06/23/2018, 5:48 PM
In the Go SDK, all of the acronyms are downcased (e.g.
Vpc
,
Ec2
) - the idiomatic thing in Go is to spell acronyms out in all caps. Was this a conscious decision to match other SDKs or just an artefact of how the provider SDK gets generated?
w

white-balloon-205

06/23/2018, 11:07 PM
I expect this is just an artifact of re-using the same "pascal casing" approach as was used for the JS name generation to convert property names to type names. We should likely have a Go-specific pascal-casing helper that generates idiomatic Go names. Here is the current helper being used: https://github.com/pulumi/pulumi-terraform/blob/master/pkg/tfgen/generate.go#L906