Skip to content

Commit

Permalink
Go: Added missing parameter in example usage of DynamoDB (#6490)
Browse files Browse the repository at this point in the history
Added missing parameter in example

PLOT was missing from the CreateTableItem example, causing the example to error
  • Loading branch information
noahlove authored May 28, 2024
1 parent 39d4c87 commit fc0bf49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/dynamodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ The table has two attributes:

Creates a new item in a DynamoDB table.

`go run CreateTableItem -d TABLE -y YEAR -t TITLE -r RATING`
`go run CreateTableItem -d TABLE -y YEAR -t TITLE -p PLOT -r RATING`

- _TABLE_ is the name of the table.
- _YEAR_ is the year that the movie was released.
- _TITLE_ is the title of the movie.
- _PLOT_ is the plot of the movie.
- _RATING_ is the rating, from 0.0 to 10.0, of the movie.

The unit test accepts similar values in _config.json_.
Expand Down

0 comments on commit fc0bf49

Please sign in to comment.