()
| 23 | } |
| 24 | |
| 25 | func (wp *workerPool) run() int { |
| 26 | numWords := 0 |
| 27 | // TODO: add logic for queueing workers based on the number provided in the flag. |
| 28 | // add the number of words detected by each worker to the totalNumberWorkder |
| 29 | } |
| 30 | |
| 31 | // getMessages gets a slice of messages to process |
| 32 | func getMessages() []string { |