Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: read-csv-struct

  • Take the following CSV file, read in the content into structs so that the latitude and longitude values are stored in float64.
city,latitude,longitude
Budapest,47.497913,19.040236
Prague,50.075539,14.437800
Vienna,48.208176,16.373819
Bratislava,48.148598,17.107748