Solution Review: Read CSV File
This lesson discusses the solution to the challenge given in the previous lesson.
We'll cover the following...
We'll cover the following...
Look at the file products.txt. The first field of each line in the file is a title, the second is a price, and the third is a quantity. Whereas, the columns are separated by a ;.
Now, look at the file main.go. First, we define a struct of type Book at line 13. It contains the fields according to the specifications of the data in our file: title, price, and quality ...