From 3478c8a9a21ec8d5b98456efcb16163df4e0afe5 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 23 Nov 2015 13:53:55 -0800 Subject: [PATCH] doc: Cleanup aws-sdk-go.md --- AWS-SDK-GO.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/AWS-SDK-GO.md b/AWS-SDK-GO.md index 4eebbe68a..899c6232a 100644 --- a/AWS-SDK-GO.md +++ b/AWS-SDK-GO.md @@ -19,18 +19,21 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" + "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" ) func main() { - // Create an S3 service object in the default region. - s3Client := s3.New(&aws.Config{ - Credentials: credentials.NewStaticCredentials("", "", ""), + newSession := session.New() + s3Config := &aws.Config{ + Credentials: credentials.NewStaticCredentials("", "