Exercise 2: Composite Data Types
Let’s test our understanding by attempting these challenges.
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.
Access this course and 1400+ top-rated courses and projects.