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

Remove duplicated statement in "v2/work-with-cdk-go.md" file and README #444

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ to see what we're working on at the moment. Note that items on the Wishlist may

## Contributor Grant of License

By submitting a Pull Request against this repo, you grant Amazon the right to use use, modify, copy, and redistribute your contribution
By submitting a Pull Request against this repo, you grant Amazon the right to use, modify, copy, and redistribute your contribution
under any license we choose.
4 changes: 0 additions & 4 deletions v2/work-with-cdk-go.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ Field and method names use camel casing \(`likeThis`\) in TypeScript, the CDK's

In your `main` method, use `defer jsii.Close()` to make sure your CDK app cleans up after itself\.

### Field and method names<a name="go-naming"></a>

Field and method names use camel casing \(`likeThis`\) in TypeScript, the CDK's language of origin\. In Go, these follow Go conventions, so are Pascal\-cased \(`LikeThis`\)\.

### Missing values and pointer conversion<a name="go-missing-values"></a>

In Go, missing values in AWS CDK objects such as property bundles are represented by `nil`\. Go doesn't have nullable types; the only type that can contain `nil` is a pointer\. To allow values to be optional, then, all CDK properties, arguments, and return values are pointers, even for primitive types\. This applies to required values as well as optional ones, so if a required value later becomes optional, no breaking change in type is needed\.
Expand Down