Skip to content

Extracts columns from one file and copies into other file in defined order.

Notifications You must be signed in to change notification settings

alidevhere/csv-column-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV Column Extractor

Extracts columns from one file and copies into other file in defined order.

Download package

go get github.com/alidevhere/csv-column-extractor

Example:

In this example column number 0 and 2 are copied into a new file, columns are copied into new file in defined order i.e 0 and 2 in this case.


err := CopyCSVColumns("src.csv", "dst.csv",ExtractorOptions{SkipHeader: true, Columns: []int{0, 2}})

if err != nil {
	fmt.Println(err)
}


About

Extracts columns from one file and copies into other file in defined order.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages