Skip to content

Latest commit

 

History

History

csv

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Basic CSV Parsing

This example covers:

  • Reading from a csv file.
  • Writing to a csv file.

The encoding/csv package in the standard Go library provides the parser you need to parse CSV. Use the function Read() to read and parse a record from an instance of Reader. Make sure you handle the returned state for io.EOF.

Setup

  1. Run the program

    $ make run

Reference and Credits