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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.