{"id":34191844,"url":"https://github.com/researchlab/gbp","last_synced_at":"2026-03-10T08:04:23.570Z","repository":{"id":57576115,"uuid":"51884969","full_name":"researchlab/gbp","owner":"researchlab","description":"Golang Best Practices (GBP™)","archived":false,"fork":false,"pushed_at":"2023-08-21T08:06:59.000Z","size":9614,"stargazers_count":25,"open_issues_count":0,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-18T16:10:00.074Z","etag":null,"topics":["channel","concurrency","defer","gbp","golang-best-practices","reflect"],"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/researchlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-02-17T01:41:32.000Z","updated_at":"2025-01-17T07:27:15.000Z","dependencies_parsed_at":"2024-01-27T04:58:14.998Z","dependency_job_id":null,"html_url":"https://github.com/researchlab/gbp","commit_stats":null,"previous_names":["researchlab/experiments"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/researchlab/gbp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchlab%2Fgbp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchlab%2Fgbp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchlab%2Fgbp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchlab%2Fgbp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/researchlab","download_url":"https://codeload.github.com/researchlab/gbp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/researchlab%2Fgbp/sbom","scorecard":{"id":771735,"data":{"date":"2025-08-11","repo":{"name":"github.com/researchlab/gbp","commit":"fc75448f56f8a26ab3361f03a907e9a9f2c41ed3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"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":"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":"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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md: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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: containerImage not pinned by hash: debug/debug-with-goland/docker/debug/Dockerfile:1","Warn: containerImage not pinned by hash: debug/debug-with-vscode-k8s/Dockerfile:2: pin your Docker image by updating golang:1.10.1 to golang:1.10.1@sha256:4826b5c314a498142c7291ad835ab6be1bf02f7813d6932d01f1f0f1383cdda1","Warn: containerImage not pinned by hash: debug/debug-with-vscode/Dockerfile:1: pin your Docker image by updating golang to golang@sha256:9e56f0d0f043a68bb8c47c819e47dc29f6e8f5129b8885bed9d43f058f7f3ed6","Warn: containerImage not pinned by hash: debug/docker/Dockerfile:1: pin your Docker image by updating golang:1.15-alpine to golang:1.15-alpine@sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264","Warn: goCommand not pinned by hash: debug/debug-with-vscode-k8s/Dockerfile:3","Warn: goCommand not pinned by hash: debug/debug-with-vscode/Dockerfile:12","Warn: goCommand not pinned by hash: debug/docker/Dockerfile:6-13","Info:   0 out of   4 containerImage dependencies pinned","Info:   1 out of   4 goCommand 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":"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-23T02:24:44.557Z","repository_id":57576115,"created_at":"2025-08-23T02:24:44.557Z","updated_at":"2025-08-23T02:24:44.557Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30327578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":["channel","concurrency","defer","gbp","golang-best-practices","reflect"],"created_at":"2025-12-15T16:05:43.820Z","updated_at":"2026-03-10T08:04:23.558Z","avatar_url":"https://github.com/researchlab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang Best Practices (GBP™)  \n\n[![Software License](https://img.shields.io/badge/License-MIT-orange.svg?style=flat-square)](https://github.com/researchlab/gbp/blob/master/LICENSE.md) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=researchlab_gbp\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=researchlab_gbp) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=researchlab_gbp\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=researchlab_gbp) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=researchlab_gbp\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=researchlab_gbp)\n\nBest Golang Practices along with the detailed samples.\n\n\u003e 为便于检索, 将主要目录归类如下\n\n## 语言特性\n\n- [channel](channel)\n- [concurrency](concurrency-patterns)\n- [copy](copy)\n- [defer](defer)\n- [generics](generics)\n- [goroutine](goroutine)\n- [reflect](reflect)\n- panic\n- recover\n- mutex\n- timer \n\n\n## 中间件实践\n\n- [rabbitmq](rabbitmq)\n- [redis](redis)\n- etcd\n- mysql\n- nsq\n\n## 第三方库实践\n\n- [gin](gin/README.md)\n- cobra\n- graphql\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresearchlab%2Fgbp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fresearchlab%2Fgbp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresearchlab%2Fgbp/lists"}