Search⌘ K
AI Features

Exercise: Working with Files

Explore how to enhance a Go command-line word counter by adding the ability to read from files as well as standard input. This exercise helps you apply Go syntax and file handling concepts to create more versatile CLI tools, understanding argument parsing and conditional input sources.

We'll cover the following...

Challenge

In this exercise, your challenge is to expand the word counter wc tool to read data from files in addition to STDIN.

Problem Statement

The current version of the word counter tool wc, which ...