{"id":14987714,"url":"https://github.com/go-spring-lab/spring-gin","last_synced_at":"2026-04-16T17:31:30.895Z","repository":{"id":48517951,"uuid":"286021263","full_name":"go-spring-lab/spring-gin","owner":"go-spring-lab","description":"「仅发布」 gin 封装 ( wrapper for gin )","archived":true,"fork":false,"pushed_at":"2022-10-09T09:38:17.000Z","size":1843,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T11:45:59.766Z","etag":null,"topics":["gin","go-spring","web"],"latest_commit_sha":null,"homepage":"https://go-spring.com","language":"Go","has_issues":true,"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/go-spring-lab.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":"2020-08-08T10:24:29.000Z","updated_at":"2025-09-12T15:27:01.000Z","dependencies_parsed_at":"2022-09-03T02:00:23.263Z","dependency_job_id":null,"html_url":"https://github.com/go-spring-lab/spring-gin","commit_stats":null,"previous_names":["go-spring/go-spring-gin"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/go-spring-lab/spring-gin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring-lab%2Fspring-gin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring-lab%2Fspring-gin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring-lab%2Fspring-gin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring-lab%2Fspring-gin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-spring-lab","download_url":"https://codeload.github.com/go-spring-lab/spring-gin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring-lab%2Fspring-gin/sbom","scorecard":{"id":432496,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-spring/spring-gin","commit":"ac4d0a0da85aa40773054fe03e71ea870298e5b9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"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":"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":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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0052 / GHSA-h395-qcrw-5vmq","Warn: Project is vulnerable to: GHSA-3vp4-m3rf-835h","Warn: Project is vulnerable to: GO-2023-1737 / GHSA-2c4m-59x9-fr2g"],"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-19T03:42:05.446Z","repository_id":48517951,"created_at":"2025-08-19T03:42:05.447Z","updated_at":"2025-08-19T03:42:05.447Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284360420,"owners_count":26991377,"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-11-14T02:00:06.101Z","response_time":56,"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":["gin","go-spring","web"],"created_at":"2024-09-24T14:15:15.256Z","updated_at":"2025-11-14T08:01:42.970Z","avatar_url":"https://github.com/go-spring-lab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-gin\n\n[仅发布] 该项目仅为最终发布，开发请关注 [go-spring](https://github.com/go-spring/go-spring) 项目。\n\n封装 github.com/gin-gonic/gin 实现的 Web 框架。\n\n- [创建 Web 容器](#创建-web-容器)\n    - [NewContainer](#newcontainer)\n- [适配 gin 框架](#适配-gin-框架)\n    - [Handler](#handler)\n    - [Filter](#filter)\n    - [GinContext](#gincontext)\n    - [WebContext](#webcontext)\n\n### 创建 Web 容器\n\n#### NewContainer\n\n创建 gin 实现的 WebContainer。\n\n    func NewContainer(config SpringWeb.ContainerConfig) *Container {}\n\n### 适配 gin 框架\n\n#### Handler\n\n适配 gin 形式的处理函数。\n\n    func Handler(fn gin.HandlerFunc) SpringWeb.Handler {}\n\n#### Filter\n\n适配 gin 形式的中间件函数。\n\n    func Filter(fn gin.HandlerFunc) SpringWeb.Filter {}\n\n#### GinContext\n\n将 SpringWeb.WebContext 转换为 *gin.Context。\n\n    func GinContext(webCtx SpringWeb.WebContext) *gin.Context {}\n\n#### WebContext\n\n将 *gin.Context 转换为 SpringWeb.WebContext。\n\n    func WebContext(ginCtx *gin.Context) SpringWeb.WebContext {}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-spring-lab%2Fspring-gin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-spring-lab%2Fspring-gin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-spring-lab%2Fspring-gin/lists"}