{"id":21078820,"url":"https://github.com/ndevplanque/csvify","last_synced_at":"2026-05-12T16:05:06.814Z","repository":{"id":61628492,"uuid":"549224849","full_name":"ndevplanque/csvify","owner":"ndevplanque","description":"Easily write .csv files with Go","archived":false,"fork":false,"pushed_at":"2022-10-10T22:15:45.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T08:52:47.843Z","etag":null,"topics":["csv","file","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"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/ndevplanque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-10T21:44:33.000Z","updated_at":"2022-10-10T21:47:54.000Z","dependencies_parsed_at":"2022-10-18T17:45:32.415Z","dependency_job_id":null,"html_url":"https://github.com/ndevplanque/csvify","commit_stats":null,"previous_names":["nicolasvalade/csvify"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ndevplanque/csvify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndevplanque%2Fcsvify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndevplanque%2Fcsvify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndevplanque%2Fcsvify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndevplanque%2Fcsvify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndevplanque","download_url":"https://codeload.github.com/ndevplanque/csvify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndevplanque%2Fcsvify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32946457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","file","go"],"created_at":"2024-11-19T19:42:34.202Z","updated_at":"2026-05-12T16:05:06.772Z","avatar_url":"https://github.com/ndevplanque.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csvify\n\nThis package lets you write .csv files easily with Go.\n\nFor more convenience it simply appends a new line to a file.\nIf the file doesn't exist, it will be created.\n\nIf you want to write multiple lines, please use a loop.\nIn the example below I'm looping over structs but please note it would also works with loops over slices, arrays, maps or primitive types.\n```\ntype test struct {\n\tFloats  []float64\n\tSlices  [][]int\n\tMap     map[string]int\n\tArrays  [2][3]int\n\tBoolean bool\n}\n\nfunc main() {\n\ttest := []test{{\n\t\tFloats:  []float64{1.1, 2.2, 3.3},\n\t\tSlices:  [][]int{{3, 4}, {6, 7, 8, 9, 10}},\n\t\tMap:     map[string]int{\"earth\": 1, \"mars\": 2, \"jupiter\": 3},\n\t\tArrays:  [2][3]int{{1, 2, 3}, {4, 5, 6}},\n\t\tBoolean: true,\n\t}, {\n\t\tFloats:  []float64{7.7, 8.8, 9.9},\n\t\tSlices:  [][]int{{6, 7}, {10, 11, 12, 13, 14}},\n\t\tMap:     map[string]int{\"trappist\": 1, \"sun\": 2, \"proxima-b\": 3},\n\t\tArrays:  [2][3]int{{10, 20, 30}, {40, 50, 60}},\n\t\tBoolean: false,\n\t}}\n\tfor i := 0; i \u003c len(test); i++ {\n\t\terr := CsvifyLine(\"test.csv\", test[i])\n\t\tif err != nil {\n\t\t\tfmt.Println(\"Error:\", err)\n\t\t}\n\t}\n}\n```\n\nIt will end up in appending those lines to test.csv :\n\n```\n1.1;2.2;3.3;3;4;6;7;8;9;10;earth=1;mars=2;jupiter=3;1;2;3;4;5;6;true;\n7.7;8.8;9.9;6;7;10;11;12;13;14;trappist=1;sun=2;proxima-b=3;10;20;30;40;50;60;false;\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndevplanque%2Fcsvify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndevplanque%2Fcsvify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndevplanque%2Fcsvify/lists"}