Skip to content

Improve Go code example#255

Merged
devlinbd2 merged 1 commit into
awsdocs:mainfrom
JamesJJ:jj-patch-1
Mar 19, 2021
Merged

Improve Go code example#255
devlinbd2 merged 1 commit into
awsdocs:mainfrom
JamesJJ:jj-patch-1

Conversation

@JamesJJ

@JamesJJ JamesJJ commented Mar 13, 2021

Copy link
Copy Markdown
Contributor

Improvements to Go code example:

Description of changes:

  • Include package main and func main() {... } so that the example can be built and deployed directly.
  • Remove strings import as it is unused and blocks build.
  • Add context, fmt and runtime imports, as the existing code depends on these.
  • Remove extra spacing in return line, to match Go standard code format

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@devlinbd2 devlinbd2 merged commit 2141ea6 into awsdocs:main Mar 19, 2021
@devlinbd2

Copy link
Copy Markdown
Contributor

Thank you for providing improvements to the Go code sample.

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