{"id":17321820,"url":"https://github.com/earthboundkid/csv","last_synced_at":"2025-08-23T16:08:31.962Z","repository":{"id":57490013,"uuid":"99759621","full_name":"earthboundkid/csv","owner":"earthboundkid","description":"Go CSV reader like Python's DictReader","archived":false,"fork":false,"pushed_at":"2024-07-24T12:41:34.000Z","size":23,"stargazers_count":24,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-12T10:19:41.109Z","etag":null,"topics":["csv","csv-reader","go","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/earthboundkid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"earthboundkid"}},"created_at":"2017-08-09T03:07:11.000Z","updated_at":"2025-01-08T13:13:52.000Z","dependencies_parsed_at":"2024-07-24T14:33:09.523Z","dependency_job_id":null,"html_url":"https://github.com/earthboundkid/csv","commit_stats":null,"previous_names":["earthboundkid/csv","carlmjohnson/csv"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/earthboundkid/csv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthboundkid%2Fcsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthboundkid%2Fcsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthboundkid%2Fcsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthboundkid%2Fcsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/earthboundkid","download_url":"https://codeload.github.com/earthboundkid/csv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthboundkid%2Fcsv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271755406,"owners_count":24815398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","csv-reader","go","golang"],"created_at":"2024-10-15T13:39:49.518Z","updated_at":"2025-08-23T16:08:31.914Z","avatar_url":"https://github.com/earthboundkid.png","language":"Go","funding_links":["https://github.com/sponsors/earthboundkid"],"categories":[],"sub_categories":[],"readme":"# csv [![GoDoc](https://godoc.org/github.com/earthboundkid/csv?status.svg)](https://pkg.go.dev/github.com/earthboundkid/csv/v2) [![Go Report Card](https://goreportcard.com/badge/github.com/earthboundkid/csv/v2)](https://goreportcard.com/report/github.com/earthboundkid/csv/v2) [![Coverage Status](https://coveralls.io/repos/github/earthboundkid/csv/badge.svg)](https://coveralls.io/github/earthboundkid/csv)\n\nGo CSV reader like Python's DictReader.\n\n```\ngo get github.com/earthboundkid/csv/v2\n```\n\nFor performance comparison to other libraries, see [this benchmark gist](https://gist.github.com/earthboundkid/af8e9b612f7bc2ce1af419f2a7975ffc). As of this writing, this library is 40% faster and uses 70% less memory than its closest competitor.\n\n## Example\n\nSource CSV\n\n```\nfirst_name,last_name,username\n\"Rob\",\"Pike\",rob\nKen,Thompson,ken\n\"Robert\",\"Griesemer\",\"gri\"\n```\n\nUser type\n\n```go\ntype User struct {\n    Username string `csv:\"username\"`\n    First    string `csv:\"first_name\"`\n    Last     string `csv:\"last_name\"`\n}\n```\n\nScanning file\n\n```go\nvar user User\nfor err := range csv.Scan(csv.Options{Reader: src}, \u0026user) {\n    if err != nil {\n        // Do something\n    }\n    fmt.Println(user.Username)\n}\n// Output:\n// rob\n// ken\n// gri\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearthboundkid%2Fcsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fearthboundkid%2Fcsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearthboundkid%2Fcsv/lists"}