{"id":18533070,"url":"https://github.com/googleapis/go-type-adapters","last_synced_at":"2025-04-09T14:31:55.647Z","repository":{"id":39854161,"uuid":"353504232","full_name":"googleapis/go-type-adapters","owner":"googleapis","description":"Type adapters for common Go protobuf messages","archived":true,"fork":false,"pushed_at":"2024-10-24T23:07:35.000Z","size":395,"stargazers_count":15,"open_issues_count":2,"forks_count":8,"subscribers_count":42,"default_branch":"main","last_synced_at":"2025-03-02T23:42:19.080Z","etag":null,"topics":["go","protobuf"],"latest_commit_sha":null,"homepage":"","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/googleapis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-31T22:16:24.000Z","updated_at":"2024-11-04T21:53:00.000Z","dependencies_parsed_at":"2023-02-16T09:46:11.805Z","dependency_job_id":"f82e1389-2e12-4531-880a-855e5c4d0ff3","html_url":"https://github.com/googleapis/go-type-adapters","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgo-type-adapters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgo-type-adapters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgo-type-adapters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgo-type-adapters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleapis","download_url":"https://codeload.github.com/googleapis/go-type-adapters/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055197,"owners_count":21040137,"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","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":["go","protobuf"],"created_at":"2024-11-06T19:09:06.797Z","updated_at":"2025-04-09T14:31:55.366Z","avatar_url":"https://github.com/googleapis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go google.type Adapters\n\n![ci](https://github.com/googleapis/go-type-adapters/workflows/ci/badge.svg)\n![latest release](https://img.shields.io/github/v/release/googleapis/go-type-adapters)\n![go version](https://img.shields.io/github/go-mod/go-version/googleapis/go-type-adapters)\n\nThis library provides helper functions for converting between the Go\nproto messages in `google.type` (as found in [genproto][]) and Go native\ntypes.\n\nFull docs are at https://pkg.go.dev/github.com/googleapis/go-type-adapters.\n\n### Example\n\nAs a simple example, this library can convert between a `google.type.Decimal`\n([proto definition][], [Go docs][]) and a Go [big.Float][]:\n\n```go\nimport (\n  \"github.com/googleapis/go-type-adapters/adapters\"\n  dpb \"google.golang.org/genproto/type/decimal\"\n)\n\nfunc main() {\n  decimal := \u0026dpb.Decimal{Value: \"12345.678\"}\n  flt, err := adapters.DecimalToFloat(decimal)\n  if err != nil {\n    panic(err)\n  }\n  // flt is a Go *big.Float and can be used as such...\n}\n```\n\n[genproto]: https://pkg.go.dev/google.golang.org/genproto\n[proto definition]: https://github.com/googleapis/googleapis/blob/master/google/type/decimal.proto\n[go docs]: https://pkg.go.dev/google.golang.org/genproto/googleapis/type/decimal\n[big.float]: https://golang.org/pkg/math/big/#Float\n\n## License\n\nThis software is made available under the [Apache 2.0][] license.\n\n[apache 2.0]: https://www.apache.org/licenses/LICENSE-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgo-type-adapters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleapis%2Fgo-type-adapters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgo-type-adapters/lists"}