June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package csvformat import ( "bytes" "encoding/csv" "fmt" "io" "strconv" ) // Movie will hold our parsed CSV type Movie struct { Title string Director string Year int } // ReadCSV gives shows some examples of processing CSV // that is passed in as an io.Reader func ReadCSV(b io.Reader) ([]Movie, error) { r := csv.NewReader(b) // These are ...