Install the AWS SDK for Go v2
mainTo use the AWS SDK for Go v2, initialize your project with Go modules and retrieve the necessary dependencies using go get.
Note: The v2 SDK requires a minimum version of Go 1.24.
$ mkdir ~/helloaws
$ cd ~/helloaws
$ go mod init helloaws
$ go get github.com/aws/aws-sdk-go-v2/aws
$ go get github.com/aws/aws-sdk-go-v2/config
$ go get github.com/aws/aws-sdk-go-v2/service/dynamodb