diff --git a/README.md b/README.md index ff1256c1ae8..d5fc0393e6b 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ This example shows how you can use the v2 SDK to make an API request using the S package main import ( + "context" "fmt" "github.com/aws/aws-sdk-go-v2/aws" @@ -59,7 +60,7 @@ func main() { }) // Send the request, and get the response or error back - resp, err := req.Send() + resp, err := req.Send(context.Background()) if err != nil { panic("failed to describe table, "+err.Error()) } diff --git a/doc.go b/doc.go index 8f49096e7a8..abb7034d462 100644 --- a/doc.go +++ b/doc.go @@ -26,6 +26,7 @@ SDK's Amazon DynamoDB client. package main import ( + "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws/endpoints" "github.com/aws/aws-sdk-go-v2/aws/external" @@ -53,7 +54,7 @@ SDK's Amazon DynamoDB client. }) // Send the request, and get the response or error back - resp, err := req.Send() + resp, err := req.Send(context.Background()) if err != nil { panic("failed to describe table, "+err.Error()) }