IO csv reader sample
version 0.0.1-SNAPSHOT
Goals:
main: read huge file, hex substring, write to new file.
repo has 2 version.
v1 can read a file and write in a new file. reading with goroutines.
v2 version is a spical verion for customer.
cmd/v2 version can read and write use ony one file.
if need to read file and create new use this:
go run cmd/v2/main.go csv/test.csv n
if need to read and to write with the same file use: go run cmd/v2/main.go csv/test.csv o
v2 version has hardcode with position for phone number which I need to hash (string to hex). It's snapshot version. todo list:
- position with yaml
- find position and ask an user about it
How to run
install go go run main.go 1kk.csv 1kk_ex.csv 1
// TODO:
install go open yaml.file and modify if you need it
(optional) move your file here
go run .
file generator
go run ./gen/main.go
Useful: