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

chore: go optional values codegen #297

Merged
merged 2 commits into from
Mar 16, 2021
Merged

Conversation

MrArnoldPalmer
Copy link
Contributor

Adds section on optionality for generated go code.


By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache-2.0 license

text/204-golang-bindings.md Outdated Show resolved Hide resolved
text/204-golang-bindings.md Outdated Show resolved Hide resolved
eladb
eladb previously approved these changes Mar 11, 2021
@mergify mergify bot dismissed eladb’s stale review March 15, 2021 17:22

Pull request has been modified.

@MrArnoldPalmer MrArnoldPalmer marked this pull request as ready for review March 16, 2021 14:54
@MrArnoldPalmer MrArnoldPalmer merged commit 69a50b5 into master Mar 16, 2021
@MrArnoldPalmer MrArnoldPalmer deleted the chore/go-optionality branch March 16, 2021 14:54
mergify bot pushed a commit to aws/jsii that referenced this pull request Mar 18, 2021
Adds support for passing `nil` to jsii nullable types in generated go code.

Changes go code generation to always use "pointer types" for all struct fields, method arguments, and method return values. Update runtime type conversion to correctly handle serializing and deserializing to these pointer types where necessary.

Removes unnecessary functionality for resolving scoped interface names for generated go types as each generated type now has only one public name. Adds support for resolving `scopedReferenceName` to easily generate "pointer types" for complex data structures from a type reference.

[RFC](aws/aws-cdk-rfcs#297)
fix: #2442
fix: #2671

---

By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
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.

2 participants