# Source: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/common-examples.html

[](/pdfs/sdk-for-go/v1/developer-guide/aws-sdk-go-dg.pdf#common-examples "Open PDF")

[Documentation](/index.html)[AWS SDK for Go](/sdk-for-go/index.html)[Developer Guide](welcome.html)

AWS SDK for Go V1 has reached end-of-support. We recommend that you migrate to [AWS SDK for Go V2](https://docs.aws.amazon.com/sdk-for-go/v2/developer-guide/). For additional details and information on how to migrate, please refer to this [announcement](https://aws.amazon.com/blogs//developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/).

# AWS SDK for Go Code Examples

The AWS SDK for Go examples can help you write your own Go applications that use Amazon Web Services. The examples assume you have already set up and configured the SDK (that is, you have imported all required packages and set your credentials and region). For more information, see [Getting Started with the AWS SDK for Go](./setting-up.html) and [Configuring the AWS SDK for Go](./configuring-sdk.html).

Find the source code for these examples and others in the AWS documentation [code examples repository on GitHub](https://github.com/awsdocs/aws-doc-sdk-examples). To propose a new code example for the AWS documentation team to consider producing, create a new request. The team is looking to produce code examples that cover broader scenarios and use cases, versus simple code snippets that cover only individual API calls. For instructions, see the _Proposing new code examples_ section in the [Readme on GitHub](https://github.com/awsdocs/aws-doc-sdk-examples).

###### Topics

  * [SDK Request Examples](./using-requests-with-go-sdk.html)

  * [AWS CloudTrail Examples](./using-cloudtrail-with-go-sdk.html)

  * [Amazon CloudWatch Examples](./using-cloudwatch-with-go-sdk.html)

  * [AWS CodeBuild Examples](./using-cb-with-go-sdk.html)

  * [Amazon DynamoDB Examples](./using-dynamodb-with-go-sdk.html)

  * [Amazon EC2 Examples](./using-ec2-with-go-sdk.html)

  * [Amazon Glacier Examples](./using-glacier-with-go-sdk.html)

  * [IAM Examples](./using-iam-with-go-sdk.html)

  * [AWS KMS Examples](./using-kms-with-go-sdk.html)

  * [AWS Lambda Examples](./using-lambda-with-go-sdk.html)

  * [Amazon Polly Examples](./using-polly-with-go-sdk.html)

  * [Amazon S3 Examples](./using-s3-with-go-sdk.html)

  * [Amazon SES Examples](./using-ses-with-go-sdk.html)

  * [Amazon SNS Examples](./using-sns-with-go-sdk.html)

  * [Amazon SQS Examples](./using-sqs-with-go-sdk.html)




![Warning](https://d1ge0kk1l5kms0.cloudfront.net/images/G/01/webservices/console/warning.png) **Javascript is disabled or is unavailable in your browser.**

To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.

[Document Conventions](/general/latest/gr/docconventions.html)

Handling Errors

SDK Request Examples

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.