Examples

Go local quickstart example

This is the fastest way to prove the Go runtime can create, read, update, and delete an item without touching a cloud account.

make docker-up
make example-local

Expected output:

created note NOTE#local (version 0)
read note: title="Hello TableTheory" value=42 version=0
updated note: title="Hello TableTheory (updated)" persistedVersion=1
deleted note NOTE#local
OK: TableTheory Go quickstart CRUD against DynamoDB Local succeeded

The target runs the checked-in program at examples/local-quickstart/main.go. It sets dummy local credentials, points the runtime at DYNAMODB_ENDPOINT=http://localhost:8000, creates the demo table idempotently, writes a note, reads it back, updates it, deletes it, and fails the process if any step returns an error. After the update, it re-reads the item so the output shows DynamoDB’s persisted optimistic-lock version increment.

For the complete walkthrough and source listing, see Getting Started.