Exercises

  1. Create a pipeline that reads text files, finds the number of occurrences of a given word, and calculates the total number of occurrences of the word in all files.
  2. Try to make dWCtotal.go faster.
  3. Create a simple Go program that plays ping pong using channels. You should define the total number of pings and pongs using a command-line argument.

Get Go Systems Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.