This section will teach you how to deal with writing and reading data records. What differentiates a record from other kinds of text data is that a record has a given structure with a specific number of fields: think of it as a row from a table in a relational database. Actually, records can be very useful for storing data in tables in case you want to develop your own database server in Go!
The Go code of records.go will save data in the CSV format and will be presented in four parts. The first part contains the following Go code:
package main import ( "encoding/csv" "fmt" "os" )
So, this is where you have to declare that you are going to read or write data in the CSV format. The second part is the following:
func main() { if len(os.Args) != 2 { fmt.Println("Need just one filename...