Skip to content

minhhoccode111/csvparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV Parser Golang

Use Golang to parse CSV files and use it to calculate some basic statistics

NOTE: We can use the encoding/csv package, which will make our life easier, but for the sake of practicing, we will use bufio instead.

Because sometimes, we will have to handle edge cases like this, a column has , character in it

21,8de40AC4e6EaCa4,"Velez, Payne and Coffey",http://burton.com/,Luxembourg,Mandatory coherent synergy,1986,Wholesale,5010

Concepts

  • Read file
  • Deal with the CSV
  • strings.SplitSeq() to return iterator

Todo

  • handle pass-in arguments
  • read file csv
  • handle csv row parsing
  • calculate statistics
  • add concurrency and optimize for One Billion Row Challenge :)

About

CSV Parser in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors