Struct Exercises
You'll build a queryable command-line game store.
-
Load up the data into the game store.
-
Now, it's time to add an interface to your program using the bufio.Scanner. So the users can list the games, or search for the games by id.
-
Add a new command: "id". So the users can query the games by id.
-
Add a new command: "save". Encode the games to json, and print it, then terminate the loop.
-
Load the initial data to the game store from json.