DynamoDB with Go was updated to use new (v2) version of AWS SDK for Go. If you want to play with older version
just checkout branch go-sdk-v1
.
Series of posts on how to use DynamoDB with Go SDK.
Each episode has it's directory with text of the post and runnable code.
- Episode #1 - Setup
- Episode #2 - Put & Get
- Episode #3 - Composite Primary Keys
- Episode #4 - Indices
- Episode #5 - Legacy IDs mapping
- Episode #6 - Legacy IDs mapping with transactions
- Episode #7 - Modelling hierarchical data with Single Table Design
- Episode #8 - Implement hierarchical data with Single Table Design
- Episode #9 - Switching the toggle, toggling the switch
- Episode #10 - Gotcha with empty slices
- Episode #11 - Expressions API
- Episode #12 - Condition on other item from item collection
- Golang (1.14 or higher) installed
- Docker (19.03 or higher) installed
- Run local DynamoDB in separate terminal
docker run --rm -p 8000:8000 amazon/dynamodb-local
- Execute tests
go test ./...