Exercise 2: Composite Data Types

Let’s test our understanding by attempting these challenges.

We'll cover the following

Let's practice what we've learned so far in the following exercises. Solutions to these exercises have been provided in the next lesson.

Problem 1

The csvData.go code given in the widget below uses the default field delimiter comma (,) to separate each field of a record in the csv.data CSV file. The CSV input file name (csv.data) will be read from the command line arguments. Make changes to csvData.go to separate the fields of a record based on the # character.

Get hands-on with 1200+ tech skills courses.