Skip to content

Small program to convert CSV headers to a struct

Notifications You must be signed in to change notification settings

timmyGr/gocolumns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gocolumns

Just a little program I wrote while learning.

It will take a CSV and convert the column headers to a formatted struct.

Example CSV

long_col_with_underscores, short_underscore , short-dashes,plain
1,2,3,4
1,2,3,4
1,2,3,4
1,2,3,4

Example Output

type TestThisStuff struct {
	LongColWithUnderscores string `csv:"LongColWithUnderscores"`
	ShortUnderscore        string `csv:"ShortUnderscore"`
	ShortDashes            string `csv:"ShortDashes"`
	Plain                  string `csv:"Plain"`
}

About

Small program to convert CSV headers to a struct

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages