Solution: Write Code Using Select that Times Out
Explore how to use Go's select statement to implement concurrency patterns that handle timeouts effectively. Learn to read CSV data into structs, manage user input on separate goroutines, and use timers to end quizzes promptly. This lesson helps you write responsive concurrent programs that improve application flow and user experience.
We'll cover the following...
We'll cover the following...
Problem breakdown
Let’s break down the problem statement and solve the challenge one step at a time:
- Create a
structto store the question and answer.
- Create a function that reads the CSV file. Input the filename, return a 2D
string