Skip to content

Small bug in example code for getting started #2947

Closed as not planned
Closed as not planned
@linter-purgatory

Description

@linter-purgatory

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis is a problem with documentation.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions