From fbf23c1eaf46e326d1d97c1310183977649442c0 Mon Sep 17 00:00:00 2001 From: Rohan Verma Date: Thu, 28 Jan 2021 09:56:47 +0530 Subject: [PATCH] fix: sample for IAM --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 84c1565..78b8f0c 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ defer testTxt.Close() s3 := simples3.New(Region, AWSAccessKey, AWSSecretKey) // or you can use this on an EC2 instance to // obtain credentials from IAM attached to the instance. -s3 := simples3.NewUsingIAM(Region) +s3, _ := simples3.NewUsingIAM(Region) // You can also set a custom endpoint to a compatible s3 instance. s3.SetEndpoint(CustomEndpoint)