{"id":20459733,"url":"https://github.com/rosbit/xlsx-extractor","last_synced_at":"2026-06-09T16:04:41.832Z","repository":{"id":144249495,"uuid":"337664932","full_name":"rosbit/xlsx-extractor","owner":"rosbit","description":"xlsx/csv columns extractor. xlsx/csv列提取器，免去数数字的烦恼","archived":false,"fork":false,"pushed_at":"2023-10-29T08:38:57.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T11:16:39.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rosbit.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-10T08:45:05.000Z","updated_at":"2023-10-29T08:38:37.000Z","dependencies_parsed_at":"2024-06-21T05:36:38.373Z","dependency_job_id":null,"html_url":"https://github.com/rosbit/xlsx-extractor","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/rosbit/xlsx-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fxlsx-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fxlsx-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fxlsx-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fxlsx-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosbit","download_url":"https://codeload.github.com/rosbit/xlsx-extractor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosbit%2Fxlsx-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34114468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","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":[],"created_at":"2024-11-15T12:17:07.712Z","updated_at":"2026-06-09T16:04:41.816Z","avatar_url":"https://github.com/rosbit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xlsx/csv列提取器\n\n 1. 根据指定标题列表提取列字段\n 1. 标题行前可以有空行\n 1. 正确转化日期\n\n## 使用方法\n\n```go\n\nimport (\n\t\"github.com/rosbit/xlsx-extractor\"\n\t\"os\"\n\t\"fmt\"\n)\n\nfunc main() {\n\t// --- reading xlsx book sheet ----\n\tbook, err := os.Open(\"somebook.xlsx\")\n\tif err != nil {\n\t\t// error\n\t\treturn\n\t}\n\tdefer book.Close()\n\n\trows, err := xlsx.XlsxRows(book, \"Sheet1\", []string{\"title1\", \"title2\", \"title3\"})\n\tif err != nil {\n\t\t// error\n\t}\n\tfor row := range rows {\n\t\tfmt.Printf(\"%#v\\n\", row)\n\t}\n\n\t// --- reading csv ----\n\tfpCsv, err := os.Open(\"somename.csv\")\n\tif err != nil {\n\t\t// error\n\t}\n\tdefer fpCsv.Close()\n\tlines, err := xlsx.CsvRows(fpCsv, []string{\"title1\", \"title2\"})\n\tif err != nil {\n\t\t// error\n\t}\n\tfor line := range lines {\n\t\tfmt.Printf(\"%#v\\n\", line)\n\t}\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosbit%2Fxlsx-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosbit%2Fxlsx-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosbit%2Fxlsx-extractor/lists"}