Skip to content
New issue

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

Update go codegen to include usage hints on Input types #4279

Merged
merged 4 commits into from Apr 3, 2020

Conversation

EvanBoyle
Copy link
Contributor

Fixes #4071

This change adds some very basic usage comments on Input types. It gives users a hint on construction of concrete instances. The tests are illustrative, but here's an example in context for pulumi-aws:

https://github.com/pulumi/pulumi-aws/compare/evan/goCodeGenUsage?expand=1

pkg/codegen/go/gen.go Show resolved Hide resolved
pkg/codegen/go/gen.go Outdated Show resolved Hide resolved
@EvanBoyle
Copy link
Contributor Author

Regenerated pulumi-aws with the suggested improvements. Looks great!

https://github.com/pulumi/pulumi-aws/compare/evan/goCodeGenUsage?expand=1

@EvanBoyle EvanBoyle merged commit 3efbc37 into master Apr 3, 2020
@pulumi-bot pulumi-bot deleted the evan/goSDKCodegenUsageComments branch April 3, 2020 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go SDK - Create standard doc string templates for T TArgs TInput TOutput that clarify usage
3 participants