{"id":24974436,"url":"https://github.com/launchdarkly/go-server-sdk","last_synced_at":"2026-06-12T01:01:41.929Z","repository":{"id":35121771,"uuid":"183480779","full_name":"launchdarkly/go-server-sdk","owner":"launchdarkly","description":"LaunchDarkly Server-side SDK for Go","archived":false,"fork":false,"pushed_at":"2026-06-11T16:53:55.000Z","size":25223,"stargazers_count":49,"open_issues_count":6,"forks_count":22,"subscribers_count":39,"default_branch":"v7","last_synced_at":"2026-06-11T17:16:10.714Z","etag":null,"topics":["feature-flags","feature-toggles","go","golang","launchdarkly","launchdarkly-sdk","managed-by-terraform","sdk"],"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/launchdarkly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-04-25T17:31:30.000Z","updated_at":"2026-06-08T09:28:57.000Z","dependencies_parsed_at":"2024-04-01T19:27:09.851Z","dependency_job_id":"ce4c47b2-83c3-4c4f-8094-6cdafb9ac389","html_url":"https://github.com/launchdarkly/go-server-sdk","commit_stats":{"total_commits":576,"total_committers":31,"mean_commits":"18.580645161290324","dds":0.7482638888888888,"last_synced_commit":"68e3440f5368aa23e72345abc56cb77d7fe90914"},"previous_names":[],"tags_count":186,"template":false,"template_full_name":null,"purl":"pkg:github/launchdarkly/go-server-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchdarkly","download_url":"https://codeload.github.com/launchdarkly/go-server-sdk/tar.gz/refs/heads/v7","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk/sbom","scorecard":{"id":421770,"data":{"date":"2025-08-11","repo":{"name":"github.com/launchdarkly/go-server-sdk","commit":"834585909c546b53a857419f3e5e6ad60181c805"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":7,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: SECURITY.md:1"],"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":"Code-Review","score":10,"reason":"all changesets reviewed","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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/check-go-versions.yml:10","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/check-go-versions.yml:36","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-please.yml:13","Warn: no topLevel permission defined: .github/workflows/check-go-versions.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:3","Info: topLevel 'contents' permission set to 'read': .github/workflows/common_ci.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/go-versions.yml:22","Info: topLevel 'contents' permission set to 'read': .github/workflows/ldai-ci.yml:3","Info: topLevel 'contents' permission set to 'read': .github/workflows/ldotel-ci.yml:3","Info: topLevel 'contents' permission set to 'read': .github/workflows/lint-pr-title.yml:4","Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/lint-pr-title.yml:5","Warn: no topLevel permission defined: .github/workflows/release-please.yml:1","Warn: topLevel 'actions' permission set to 'write': .github/workflows/stale.yml:3","Info: topLevel 'contents' permission set to 'read': .github/workflows/stale.yml:4"],"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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-go-versions.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/check-go-versions.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-go-versions.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/check-go-versions.yml/v7?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-go-versions.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/check-go-versions.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/common_ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/common_ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/common_ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/common_ci.yml/v7?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/common_ci.yml:63: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/common_ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/common_ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/common_ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/common_ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-versions.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/go-versions.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ldai-ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/ldai-ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ldai-ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/ldai-ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ldotel-ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/ldotel-ci.yml/v7?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ldotel-ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/ldotel-ci.yml/v7?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-pr-title.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/lint-pr-title.yml/v7?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-please.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/release-please.yml/v7?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/stale.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk/stale.yml/v7?enable=pin","Info:   0 out of  16 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   6 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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt: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":"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":"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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3540"],"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":9,"reason":"SAST tool is not run on all commits -- score normalized to 9","details":["Warn: 29 commits out of 30 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-19T01:23:20.900Z","repository_id":35121771,"created_at":"2025-08-19T01:23:20.900Z","updated_at":"2025-08-19T01:23:20.900Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34224103,"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-11T02:00:06.485Z","response_time":57,"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":["feature-flags","feature-toggles","go","golang","launchdarkly","launchdarkly-sdk","managed-by-terraform","sdk"],"created_at":"2025-02-03T20:04:11.949Z","updated_at":"2026-06-12T01:01:41.813Z","avatar_url":"https://github.com/launchdarkly.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaunchDarkly Server-side SDK for Go\n\n[![Actions Status](https://github.com/launchdarkly/go-server-sdk/actions/workflows/ci.yml/badge.svg?branch=v7)](https://github.com/launchdarkly/go-server-sdk/actions/workflows/ci.yml)\n\n## LaunchDarkly overview\n\n[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!\n\n## Supported Go versions\n\nThe SDK supports the 'latest' and 'penultimate' Go versions defined in [this file](./.github/variables/go-versions.env).\n\nLaunchDarkly intends to keep those versions up-to-date with the Go project's latest two releases, which represents a support\nperiod of roughly 1 year. This policy is intended to match Go's official [Release Policy](https://go.dev/doc/devel/release): \neach major Go release is supported until there are two newer major releases.\n\nAdditionally, a 'minimum' version is tested in CI but not officially supported. This minimum version is found in [go.mod](./go.mod).\nThis version may be [bumped](./CONTRIBUTING.md#bumping-the-minimum-go-version) from time to time as new Go features \nbecome available that are useful to the SDK.\n\n## Getting started\n\nRefer to the [SDK documentation](https://docs.launchdarkly.com/sdk/server-side/go#getting-started) for instructions on getting started with using the SDK.\n\n## HTTPS proxy\n\nThere are two ways to specify the use of a proxy server. First, you can do it programmatically: see ldcomponents.HTTPConfiguration().\n\nSecond, Go's standard HTTP library also provides built-in support for the use of an HTTPS proxy via the `HTTPS_PROXY` environment variable. If this environment variable is present, then the SDK will proxy all network requests through the URL provided.\n\nHow to set the HTTPS_PROXY environment variable on Mac/Linux systems:\n```\nexport HTTPS_PROXY=https://web-proxy.domain.com:8080\n```\n\nHow to set the HTTPS_PROXY environment variable on Windows systems:\n```\nset HTTPS_PROXY=https://web-proxy.domain.com:8080\n```\n\nIf your proxy requires authentication then you can prefix the URN with your login information:\n```\nexport HTTPS_PROXY=http://user:pass@web-proxy.domain.com:8080\n```\nor\n```\nset HTTPS_PROXY=http://user:pass@web-proxy.domain.com:8080\n```\n\n## Database integrations\n\nFeature flag data can be kept in a persistent store using a database integration; LaunchDarkly provides integrations for several databases, such as Redis, which are provided in separate packages. See the [SDK reference guide](https://docs.launchdarkly.com/sdk/concepts/data-stores) for more information.\n\n## Learn more\n\nRead our [documentation](http://docs.launchdarkly.com) for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the [complete reference guide for this SDK](http://docs.launchdarkly.com/docs/go-sdk-reference) or our [code-generated API documentation](https://pkg.go.dev/github.com/launchdarkly/go-server-sdk/v7).\n\n## Testing\n\nWe run integration tests for all our SDKs using a centralized test harness. This approach gives us the ability to test for consistency across SDKs, as well as test networking behavior in a long-running application. These tests cover each method in the SDK, and verify that event sending, flag evaluation, stream reconnection, and other aspects of the SDK all behave correctly.\n\n## Contributing\n\nWe encourage pull requests and other contributions from the community. Check out our [contributing guidelines](CONTRIBUTING.md) for instructions on how to contribute to this SDK.\n\n## About LaunchDarkly\n\n* LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard.  With LaunchDarkly, you can:\n    * Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.\n    * Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).\n    * Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.\n    * Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.\n* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.\n* Explore LaunchDarkly\n    * [launchdarkly.com](https://www.launchdarkly.com/ \"LaunchDarkly Main Website\") for more information\n    * [docs.launchdarkly.com](https://docs.launchdarkly.com/  \"LaunchDarkly Documentation\") for our documentation and SDK reference guides\n    * [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/  \"LaunchDarkly API Documentation\") for our API documentation\n    * [blog.launchdarkly.com](https://blog.launchdarkly.com/  \"LaunchDarkly Blog Documentation\") for the latest product updates\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fgo-server-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchdarkly%2Fgo-server-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fgo-server-sdk/lists"}