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

Small bug in example code for getting started #2947

Closed
linter-purgatory opened this issue Jan 7, 2025 · 2 comments
Closed

Small bug in example code for getting started #2947

linter-purgatory opened this issue Jan 7, 2025 · 2 comments
Labels
documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged.

Comments

@linter-purgatory
Copy link

linter-purgatory commented Jan 7, 2025

Describe the issue

Need to dereference the pointer

https://aws.github.io/aws-sdk-go-v2/docs/getting-started/#invoke-an-operation

The code snippet at the end:

	log.Println("first page results:")
	for _, object := range output.Contents {
		log.Printf("key=%s size=%d", aws.ToString(object.Key), object.Size)
	}

Should be:

	log.Println("first page results:")
	for _, object := range output.Contents {
		log.Printf("key=%s size=%d", aws.ToString(object.Key), *object.Size)
	}

Links

https://aws.github.io/aws-sdk-go-v2/docs/getting-started/#invoke-an-operation

AWS Go SDK V2 Module Versions Used

No response

@linter-purgatory linter-purgatory added documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged. labels Jan 7, 2025
@lucix-aws
Copy link
Contributor

Sorry, awkward timing - the developer guide has migrated.

The old content will be replaced with redirects shortly pending #2948.

Please navigate to the new page and use the "feedback" button near the top right to report this issue.

@lucix-aws lucix-aws closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants