{"id":31202129,"url":"https://github.com/programmfabrik/go-csvx","last_synced_at":"2025-09-20T13:07:58.253Z","repository":{"id":48785078,"uuid":"383130162","full_name":"programmfabrik/go-csvx","owner":"programmfabrik","description":"go-csvx implements the csv encoder and extends it with various functionalities. This library supports a typed csv format. The second column defines the data type.","archived":false,"fork":false,"pushed_at":"2021-07-12T10:02:23.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-27T22:29:25.141Z","etag":null,"topics":["csv","csv-encoding","go","golang","typed","typed-csv"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/programmfabrik.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":"2021-07-05T12:15:19.000Z","updated_at":"2023-02-09T09:14:10.000Z","dependencies_parsed_at":"2022-08-30T14:31:47.917Z","dependency_job_id":null,"html_url":"https://github.com/programmfabrik/go-csvx","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"purl":"pkg:github/programmfabrik/go-csvx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmfabrik%2Fgo-csvx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmfabrik%2Fgo-csvx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmfabrik%2Fgo-csvx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmfabrik%2Fgo-csvx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programmfabrik","download_url":"https://codeload.github.com/programmfabrik/go-csvx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmfabrik%2Fgo-csvx/sbom","scorecard":{"id":746180,"data":{"date":"2025-08-11","repo":{"name":"github.com/programmfabrik/go-csvx","commit":"fe0bfa6c16b085e6f00a5238f8969a7d05c9e907"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":4,"reason":"Found 2/5 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/programmfabrik/go-csvx/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/programmfabrik/go-csvx/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/programmfabrik/go-csvx/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/programmfabrik/go-csvx/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/programmfabrik/go-csvx/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/programmfabrik/go-csvx/tests.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T18:49:01.466Z","repository_id":48785078,"created_at":"2025-08-22T18:49:01.466Z","updated_at":"2025-08-22T18:49:01.466Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276099925,"owners_count":25585116,"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-09-20T02:00:10.207Z","response_time":63,"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-encoding","go","golang","typed","typed-csv"],"created_at":"2025-09-20T13:07:56.703Z","updated_at":"2025-09-20T13:07:58.245Z","avatar_url":"https://github.com/programmfabrik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-csvx\n\n[![unit-tests](https://github.com/programmfabrik/go-csvx/actions/workflows/tests.yml/badge.svg)](https://github.com/programmfabrik/go-csvx/actions/workflows/tests.yml)\n\ngo-csvx implements the csv encoder and extends it with various functionalities. This library supports a typed csv format. The second column defines the data type.\n\n## Getting started\n\nSince this repository serves as a library for typed and untyped csv parsing, you need to define it as a Go dependency to work with it. To declare it as a dependency in your project, use the **go get** command from below to attach it to your project:\n\n```bash\ngo get github.com/programmfabrik/go-csvx\n```\n\n## Defining a csv\n\n**Typed:**\n\n```csv\nfoo,bar,counter,names\nstring,string,int,\"string,array\"\ntest1,test2,10,\"hello,world,how,is,it,going\"\n```\n\n**Untyped:**\n\n```csv\nfoo,bar,counter,names\nhello,world,10,\"hello,world,how,is,it,going\"\n```\n\n## Supported data types\n\nThis library supports the following list of data types:\n\n- string\n- int64\n- int\n- float64\n- bool\n- \"string,array\"\n- \"int64,array\"\n- \"float64,array\"\n- \"bool,array\"\n- json\n- *string\n- *int64\n- *int\n- *float64\n- *bool\n- *\"string,array\"\n- *\"int64,array\"\n- *\"float64,array\"\n- *\"bool,array\"\n- *json\n\n## Examples\n\n**Untyped example:**\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/programmfabrik/go-csvx\"\n)\n\nfunc main() {\n    csv := csvx.CSVParser{\n        Comma:            ',',\n        Comment:          '#',\n        TrimLeadingSpace: true,\n        SkipEmptyColumns: true,\n    }\n\n    data, _ := csv.Untyped([]byte(\n        `foo,bar,counter,names\n        hello,world,10,\"hello,world,how,is,it,going\"`))\n\n    fmt.Printf(\"untyped data:\\n\\t%+#v\\n\", data)\n}\n```\n\nResult:\n\n```txt\nuntyped data:\n        []map[string]interface {}{map[string]interface {}{\"bar\":\"world\", \"counter\":\"10\", \"foo\":\"hello\", \"names\":\"hello,world,how,is,it,going\"}}\n```\n\n**Typed example:**\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/programmfabrik/go-csvx\"\n)\n\nfunc main() {\n    csv := csvx.CSVParser{\n        Comma:            ',',\n        Comment:          '#',\n        TrimLeadingSpace: true,\n        SkipEmptyColumns: true,\n    }\n\n    data, _ := csv.Typed([]byte(\n        `foo,bar,counter,names\n        string,string,int,\"string,array\"\n        hello,world,10,\"hello,world,how,is,it,going\"`))\n\n    fmt.Printf(\"untyped data:\\n\\t%+#v\\n\", data)\n}\n```\n\nResult:\n\n```txt\ntyped data:\n        []map[string]interface {}{map[string]interface {}{\"bar\":\"world\", \"counter\":10, \"foo\":\"hello\", \"names\":[]string{\"hello\", \"world\", \"how\", \"is\", \"it\", \"going\"}}}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammfabrik%2Fgo-csvx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrammfabrik%2Fgo-csvx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammfabrik%2Fgo-csvx/lists"}