{"id":15035083,"url":"https://github.com/launchdarkly/go-sdk-common","last_synced_at":"2025-09-21T02:16:27.786Z","repository":{"id":48576028,"uuid":"235922778","full_name":"launchdarkly/go-sdk-common","owner":"launchdarkly","description":"Basic types for LaunchDarkly Go SDK components","archived":false,"fork":false,"pushed_at":"2025-07-25T19:29:16.000Z","size":732,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":39,"default_branch":"v3","last_synced_at":"2025-07-26T01:30:53.102Z","etag":null,"topics":["feature-flags","feature-toggles","go","golang","launchdarkly","launchdarkly-sdk","launchdarkly-sdk-component","managed-by-terraform","mirror"],"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}},"created_at":"2020-01-24T01:50:16.000Z","updated_at":"2025-07-25T19:29:06.000Z","dependencies_parsed_at":"2025-07-16T03:08:28.082Z","dependency_job_id":"4d1846ca-df3e-4d10-83cc-ab5008685794","html_url":"https://github.com/launchdarkly/go-sdk-common","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/launchdarkly/go-sdk-common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-sdk-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-sdk-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-sdk-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-sdk-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchdarkly","download_url":"https://codeload.github.com/launchdarkly/go-sdk-common/tar.gz/refs/heads/v3","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-sdk-common/sbom","scorecard":{"id":579924,"data":{"date":"2025-08-11","repo":{"name":"github.com/launchdarkly/go-sdk-common","commit":"4d8d07a5cc1f0b8d805d846c474ee510a1c481b1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.4,"checks":[{"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":"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":"Code-Review","score":4,"reason":"Found 11/23 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":"Maintained","score":5,"reason":"6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","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":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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/check-go-versions.yml:34","Warn: no topLevel permission defined: .github/workflows/check-go-versions.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/common_ci.yml:1","Warn: no topLevel permission defined: .github/workflows/go-versions.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/gosec.yml:11","Warn: no topLevel permission defined: .github/workflows/release-please.yml:1","Warn: no topLevel permission defined: .github/workflows/stale.yml:1"],"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":"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:15: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/check-go-versions.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-go-versions.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/check-go-versions.yml/v3?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-go-versions.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/check-go-versions.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/ci.yml/v3?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-sdk-common/ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/common_ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/common_ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/common_ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/common_ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/common_ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/common_ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/common_ci.yml/v3?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-sdk-common/common_ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-versions.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/go-versions.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gosec.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/gosec.yml/v3?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gosec.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/gosec.yml/v3?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gosec.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/gosec.yml/v3?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-please.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/release-please.yml/v3?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/stale.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-sdk-common/stale.yml/v3?enable=pin","Info:   0 out of  14 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":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 18 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-20T18:55:59.658Z","repository_id":48576028,"created_at":"2025-08-20T18:55:59.658Z","updated_at":"2025-08-20T18:55:59.658Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276183775,"owners_count":25599223,"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-09-21T02:00:07.055Z","response_time":72,"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","launchdarkly-sdk-component","managed-by-terraform","mirror"],"created_at":"2024-09-24T20:27:27.392Z","updated_at":"2025-09-21T02:16:27.780Z","avatar_url":"https://github.com/launchdarkly.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaunchDarkly Go SDK Core Packages\n\n[![Circle CI](https://circleci.com/gh/launchdarkly/go-sdk-common.svg?style=shield)](https://circleci.com/gh/launchdarkly/go-sdk-common) [![Documentation](https://img.shields.io/static/v1?label=go.dev\u0026message=reference\u0026color=00add8)](https://pkg.go.dev/github.com/launchdarkly/go-sdk-common/v3)\n\n## Overview\n\nThis repository contains packages and types that are shared between the [LaunchDarkly Go SDK](https://github.com/launchdarkly/go-server-sdk) and other LaunchDarkly Go components.\n\nVersion 3.x of `go-sdk-common` is used by version 6.x of the LaunchDarkly Go SDK. It is not usable with earlier SDK versions.\n\nApplications using the LaunchDarkly Go SDK will generally use the `ldcontext` subpackage, which contains the `Context` type, and may also use the `ldvalue` package, which contains the `Value` type that represents arbitrary JSON values. Other packages are less frequently used.\n\n## Supported Go versions\n\nThis version of the project requires a Go version of 1.23 or higher.\n\n## Integration with easyjson\n\nLaunchDarkly tools frequently read and write JSON data. By default, `go-sdk-common` uses LaunchDarkly's open-source JSON library [`go-jsonstream`](https://github.com/launchdarkly/go-jsonstream), which is considerably faster than Go's built-in `encoding/json` and does not depend on any third-party code. However, it can optionally integrate with the third-party library [`easyjson`](https://github.com/mailru/easyjson), which may be even faster in some cases, without requiring any changes in your code. To enable this, set the build tag `launchdarkly_easyjson` when you run `go build`, which both switches `go-jsonstream` to use `easyjson` internally and also generates `MarshalEasyJSON`/`UnmarshalEasyJSON` methods for each JSON-serializable type. The `easyjson` library is still under development and has some potential compatibility issues; see its documentation for more details.\n\nIf you do not set the `launchdarkly_easyjson` build tag, `go-sdk-common` does not use any code from `easyjson`.\n\n## Learn more\n\nCheck out 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 the Go SDK](http://docs.launchdarkly.com/docs/go-sdk-reference), or the [generated API documentation](https://godoc.org/github.com/launchdarkly/go-sdk-common/v3) for this project.\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-sdk-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchdarkly%2Fgo-sdk-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fgo-sdk-common/lists"}