{"id":13413431,"url":"https://github.com/go-the-way/exl","last_synced_at":"2026-01-29T02:48:30.237Z","repository":{"id":57692495,"uuid":"483116910","full_name":"go-the-way/exl","owner":"go-the-way","description":"Excel binding to struct written in Go.(Only supports Go1.18+)","archived":false,"fork":false,"pushed_at":"2025-10-16T02:37:50.000Z","size":88,"stargazers_count":32,"open_issues_count":0,"forks_count":11,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-17T04:59:53.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-the-way.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":"2022-04-19T06:04:31.000Z","updated_at":"2025-10-16T02:37:54.000Z","dependencies_parsed_at":"2024-05-16T10:53:59.742Z","dependency_job_id":"03880506-71d4-4bcd-8f7d-a48e0eb8375f","html_url":"https://github.com/go-the-way/exl","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/go-the-way/exl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-the-way%2Fexl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-the-way%2Fexl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-the-way%2Fexl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-the-way%2Fexl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-the-way","download_url":"https://codeload.github.com/go-the-way/exl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-the-way%2Fexl/sbom","scorecard":{"id":432557,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-the-way/exl","commit":"835ee07f577d8bfbddfdbc3686649d7f97d18594"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":4,"reason":"Found 7/16 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":"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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":-1,"reason":"No tokens found","details":null,"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":"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 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"}}]},"last_synced_at":"2025-08-19T03:42:38.969Z","repository_id":57692495,"created_at":"2025-08-19T03:42:38.969Z","updated_at":"2025-08-19T03:42:38.969Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28861399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"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-07-30T20:01:40.234Z","updated_at":"2026-01-29T02:48:30.212Z","avatar_url":"https://github.com/go-the-way.png","language":"Go","funding_links":[],"categories":["Microsoft Office","微软办公软件"],"sub_categories":["Microsoft Excel"],"readme":"# exl\nExcel binding to struct written in Go.(Only supports Go1.18+)\n\n[![CircleCI](https://circleci.com/gh/go-the-way/exl/tree/main.svg?style=shield)](https://circleci.com/gh/go-the-way/exl/tree/main)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/go-the-way/exl)\n[![codecov](https://codecov.io/gh/go-the-way/exl/branch/main/graph/badge.svg?token=8MAR3J959H)](https://codecov.io/gh/go-the-way/exl)\n[![Go Report Card](https://goreportcard.com/badge/github.com/go-the-way/exl)](https://goreportcard.com/report/github.com/go-the-way/exl)\n[![GoDoc](https://pkg.go.dev/badge/github.com/go-the-way/exl?status.svg)](https://pkg.go.dev/github.com/go-the-way/exl?tab=doc)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go#microsoft-excel)\n\n## usage\n\n### Read Excel\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\n\t\"github.com/go-the-way/exl\"\n)\n\ntype ReadExcel struct {\n\tID   int    `excel:\"ID\"`\n\tName string `excel:\"Name\"`\n}\n\nfunc (*ReadExcel) ReadConfigure(rc *exl.ReadConfig) {}\n\nfunc main() {\n\tif models, err := exl.ReadFile[*ReadExcel](\"/to/path.xlsx\"); err != nil {\n\t\tfmt.Println(\"read excel err:\" + err.Error())\n\t} else {\n\t\tfmt.Printf(\"read excel num: %d\\n\", len(models))\n\t}\n}\n```\n\n### Write Excel\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\n\t\"github.com/go-the-way/exl\"\n)\n\ntype WriteExcel struct {\n\tID   int    `excel:\"ID\"`\n\tName string `excel:\"Name\"`\n}\n\nfunc (m *WriteExcel) WriteConfigure(wc *exl.WriteConfig) {}\n\nfunc main() {\n\tif err := exl.Write(\"/to/path.xlsx\", []*WriteExcel{{100, \"apple\"}, {200, \"pear\"}}); err != nil {\n\t\tfmt.Println(\"write excel err:\" + err.Error())\n\t} else {\n\t\tfmt.Println(\"write excel done\")\n\t}\n}\n```\n\n## Writer\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/go-the-way/exl\"\n)\n\nfunc main() {\n\tw := exl.NewWriter()\n\tif err := w.Write(\"int\", []int{1, 2}); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tif err := w.Write(\"float\", []float64{1.1, 2.2}); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tif err := w.Write(\"string\", []string{\"hello\", \"world\"}); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tif err := w.Write(\"map\", []map[string]string{{\"id\":\"1000\",\"name\":\"hello\"},{\"id\":\"2000\",\"name\":\"world\"}}); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tif err := w.Write(\"structWithField\", []struct{ID int}{{1000},{2000}}); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tif err := w.Write(\"structWithTag\", []struct{ID int `excel:\"编号\"`}{{1000},{2000}}); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tif err := w.Write(\"structWithTagAndIgnore\", []struct{\n\t\tID int `excel:\"编号\"`\n\t\tExtra int `excel:\"-\"`\n\t\tName string `excel:\"名称\"`\n\t}{{1000,0,\"Coco\"},{2000,0,\"Apple\"}}); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t} \n\tif err := w.SaveTo(\"dist.xlsx\"); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-the-way%2Fexl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-the-way%2Fexl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-the-way%2Fexl/lists"}