{"id":3511869,"name":"github.com/google/orderedcode","ecosystem":"go","description":"Package orderedcode provides a byte encoding of a sequence of typed items.\nThe resulting bytes can be lexicographically compared to yield the same\nordering as item-wise comparison on the original sequences.\n\nMore precisely, suppose:\n\nThen comparing A versus B lexicographically is the same as comparing the\nvectors [A_1..A_n] and [B_1..B_n] lexicographically.\n\nFurthermore, if i \u003c j then [A_1..A_i]'s encoding is a prefix of [A_1..A_j]'s\nencoding.\n\nThe order-maintaining and prefix properties described above are useful for\ngenerating keys for databases like Bigtable.\n\nCall Append(buffer, item1, ..., itemN) to construct the encoded bytes. The\nvalid item types are:\n\nAs a convenience, orderedcode.Infinity is a value of type struct{}. For\nexample, to encode a sequence of two strings, an 'infinity' and an uint64:\n\nAlternatively, encoding can be done in multiple steps:\n\nCall Parse(encoded, \u0026item1, ..., \u0026itemN) to deconstruct an encoded string.\nThe valid argument types are the pointers to the valid encoding types. For\nexample:\n\nAlternatively:\n\nA TrailingString is a string that, if present, must be the last item appended\nor parsed. It is not mandatory to use a TrailingString; it is valid for the\nlast item to be a standard string or any other type listed above. A\nTrailingString simply allows a more efficient encoding while retaining the\nlexicographic order-maintaining property. If used, you cannot append a\nTrailingString and parse the result as a standard string, or as a\nStringOrInfinity. For example:\n\nThe same sequence of types should be used for encoding and decoding (although\nStringOrInfinity can substitute for either a string or a struct{}, but not for\na TrailingString). The wire format is not fully self-describing:\n\"\\x00\\x01\\x04\\x03\\x02\\x00\\x01\" is a valid encoding of both [\"\", \"\\x04\\x03\\x02\"]\nand [uint64(0), uint64(4), uint64(0x20001)]. Decoding into a pointer of the\nwrong type may return corrupt data and no error.\n\nEach item can optionally be encoded in decreasing order. If the i'th item is\nand the lexicographic comparison of A and B comes down to A_i versus B_i, then\nA \u003c B will equal A_i \u003e B_i.\n\nTo encode in decreasing order, wrap the item in an orderedcode.Decr value. To\ndecode, wrap the item pointer in an orderedcode.Decr. For example:\n\nEach item's ordering is independent from other items, but the same ordering\nshould be used to encode and decode the i'th item.","homepage":"https://github.com/google/orderedcode","licenses":"Apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/google/orderedcode","keywords_array":[],"namespace":"github.com/google","versions_count":1,"first_release_published_at":"2019-02-13T16:04:47.000Z","latest_release_published_at":"2019-02-13T16:04:47.000Z","latest_release_number":"v0.0.1","last_synced_at":"2026-04-17T19:20:22.389Z","created_at":"2022-04-10T21:15:36.311Z","updated_at":"2026-04-17T19:20:22.389Z","registry_url":"https://pkg.go.dev/github.com/google/orderedcode","install_command":"go get github.com/google/orderedcode","documentation_url":"https://pkg.go.dev/github.com/google/orderedcode#section-documentation","metadata":{},"repo_metadata":{"id":34656975,"uuid":"38627431","full_name":"google/orderedcode","owner":"google","description":null,"archived":true,"fork":false,"pushed_at":"2019-11-05T23:53:50.000Z","size":16,"stargazers_count":41,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-18T20:09:06.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"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/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-06T15:22:00.000Z","updated_at":"2025-09-15T00:37:47.000Z","dependencies_parsed_at":"2022-06-27T11:40:48.372Z","dependency_job_id":null,"html_url":"https://github.com/google/orderedcode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/google/orderedcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Forderedcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Forderedcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Forderedcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Forderedcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/orderedcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Forderedcode/sbom","scorecard":{"id":437596,"data":{"date":"2025-08-11","repo":{"name":"github.com/google/orderedcode","commit":"9a3d15e0d5340bb1ba5db4071afd931e18b6e013"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"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":5,"reason":"Found 1/2 approved changesets -- score normalized to 5","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":-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":"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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/google/.github/SECURITY.md:1","Info: Found linked content: github.com/google/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/google/.github/SECURITY.md:1","Info: Found text in security policy: github.com/google/.github/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"}}]},"last_synced_at":"2025-08-19T05:02:35.360Z","repository_id":34656975,"created_at":"2025-08-19T05:02:35.360Z","updated_at":"2025-08-19T05:02:35.360Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275997399,"owners_count":25567379,"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-19T02:00:09.700Z","response_time":108,"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"},"owner_record":{"login":"google","name":"Google","uuid":"1342004","kind":"organization","description":"Google ❤️ Open Source","email":"opensource@google.com","website":"https://opensource.google/","location":"United States of America","twitter":"GoogleOSS","company":null,"icon_url":"https://avatars.githubusercontent.com/u/1342004?v=4","repositories_count":2773,"last_synced_at":"2025-08-12T15:55:14.931Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/google","funding_links":[],"total_stars":1967885,"followers":58475,"following":0,"created_at":"2022-11-02T16:20:58.973Z","updated_at":"2025-08-12T15:55:14.931Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google/repositories"},"tags":[]},"repo_metadata_updated_at":"2025-10-12T05:56:04.976Z","dependent_packages_count":3839,"downloads":null,"downloads_period":null,"dependent_repos_count":2119,"rankings":{"downloads":null,"dependent_repos_count":0.1776878047406221,"dependent_packages_count":0.06711085263986123,"stargazers_count":6.298660398962448,"forks_count":5.6049132790946175,"docker_downloads_count":0.7402316984579597,"average":2.5777208067791015},"purl":"pkg:golang/github.com/google/orderedcode","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/google/orderedcode","docker_dependents_count":269,"docker_downloads_count":224069,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/google/orderedcode","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/google/orderedcode/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-09-01T02:21:07.523Z","issues_count":0,"pull_requests_count":2,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":149624.0,"issues_closed_count":0,"pull_requests_closed_count":1,"pull_request_authors_count":2,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":2.0,"merged_pull_requests_count":1,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Forderedcode/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgoogle%2Forderedcode/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgoogle%2Forderedcode/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgoogle%2Forderedcode/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgoogle%2Forderedcode/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgoogle%2Forderedcode/codemeta","maintainers":[]}