{"id":13562860,"url":"https://github.com/cosmos/gogoproto","last_synced_at":"2025-04-05T09:10:34.239Z","repository":{"id":41987263,"uuid":"452358235","full_name":"cosmos/gogoproto","owner":"cosmos","description":"Protocol Buffers for Go with Gadgets for Cosmos","archived":false,"fork":false,"pushed_at":"2024-08-23T21:37:47.000Z","size":44127,"stargazers_count":61,"open_issues_count":1,"forks_count":29,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-03-29T08:09:54.441Z","etag":null,"topics":[],"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/cosmos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-26T16:45:33.000Z","updated_at":"2025-03-23T16:02:18.000Z","dependencies_parsed_at":"2022-08-12T01:31:07.961Z","dependency_job_id":"8fe06a88-a8ca-4959-af5e-2d620973f2e7","html_url":"https://github.com/cosmos/gogoproto","commit_stats":{"total_commits":1131,"total_committers":83,"mean_commits":"13.626506024096386","dds":0.3616268788682582,"last_synced_commit":"f63456018a5c1ad89e13491e381f5cdce59e3318"},"previous_names":["cosmos/protobuf"],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmos%2Fgogoproto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmos%2Fgogoproto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmos%2Fgogoproto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmos%2Fgogoproto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmos","download_url":"https://codeload.github.com/cosmos/gogoproto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312085,"owners_count":20918344,"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":[],"created_at":"2024-08-01T13:01:12.952Z","updated_at":"2025-04-05T09:10:34.207Z","avatar_url":"https://github.com/cosmos.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Protocol Buffers for Go with Gadgets\n\nCosmos's fork of [gogo/protobuf](https://github.com/gogo/protobuf).\n\n[![Build Status](https://github.com/cosmos/gogoproto/workflows/Continuous%20Integration/badge.svg)](https://github.com/cosmos/gogoproto/actions)\n[![GoDoc](https://godoc.org/github.com/cosmos/gogoproto?status.svg)](http://godoc.org/github.com/cosmos/gogoproto)\n\nThis code generation is used to achieve:\n\n- fast marshalling and unmarshalling\n- more canonical Go structures\n- goprotobuf compatibility\n- less typing by optionally generating extra helper code\n- peace of mind by optionally generating test and benchmark code\n- other serialization formats\n\nMore information in the [original readme](https://github.com/gogo/protobuf/blob/master/README).\n\n## Getting Started\n\nThere are several ways to use gogoprotobuf, but for all you need to install go and protoc.\nAfter that you can choose:\n\n  - Speed\n  - More Speed and more generated code\n  - Most Speed and most customization\n\n### Installation\n\nTo install it, you must first have Go (at least version 1.6.3 or 1.9 if you are using gRPC) installed (see [http://golang.org/doc/install](http://golang.org/doc/install)).\nLatest patch versions of 1.12 and 1.15 are continuously tested.\n\nNext, install the standard protocol buffer implementation from [https://github.com/google/protobuf](https://github.com/google/protobuf).\nMost versions from 2.3.1 should not give any problems, but 2.6.1, 3.0.2 and 3.14.0 are continuously tested.\n\n### Speed\n\nInstall the protoc-gen-gofast binary\n\n    go get github.com/cosmos/gogoproto/protoc-gen-gofast\n\nUse it to generate faster marshaling and unmarshaling go code for your protocol buffers.\n\n    protoc --gofast_out=. myproto.proto\n\nThis does not allow you to use any of the other gogoprotobuf [extensions](https://github.com/cosmos/gogoproto/blob/master/extensions.md).\n\n### More Speed and more generated code\n\nFields without pointers cause less time in the garbage collector.\nMore code generation results in more convenient methods.\n\nOther binaries are also included:\n\n    protoc-gen-gogofast (same as gofast, but imports gogoprotobuf)\n    protoc-gen-gogofaster (same as gogofast, without XXX_unrecognized, less pointer fields)\n    protoc-gen-gogoslick (same as gogofaster, but with generated string, gostring and equal methods)\n\nInstalling any of these binaries is easy.  Simply run:\n\n    go get github.com/cosmos/gogoproto/proto\n    go get github.com/cosmos/gogoproto/{binary}\n    go get github.com/cosmos/gogoproto/gogoproto\n\nThese binaries allow you to use gogoprotobuf [extensions](https://github.com/cosmos/gogoproto/blob/master/extensions.md). You can also use your own binary.\n\nTo generate the code, you also need to set the include path properly.\n\n    protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/cosmos/gogoproto/protobuf --{binary}_out=. myproto.proto\n\nTo use proto files from \"google/protobuf\" you need to add additional args to protoc.\n\n    protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/cosmos/gogoproto/protobuf --{binary}_out=\\\n    Mgoogle/protobuf/any.proto=github.com/cosmos/gogoproto/types,\\\n    Mgoogle/protobuf/duration.proto=github.com/cosmos/gogoproto/types,\\\n    Mgoogle/protobuf/struct.proto=github.com/cosmos/gogoproto/types,\\\n    Mgoogle/protobuf/timestamp.proto=github.com/cosmos/gogoproto/types,\\\n    Mgoogle/protobuf/wrappers.proto=github.com/cosmos/gogoproto/types:. \\\n    myproto.proto\n\nNote that in the protoc command, {binary} does not contain the initial prefix of \"protoc-gen\".\n\n### Most Speed and most customization\n\nCustomizing the fields of the messages to be the fields that you actually want to use removes the need to copy between the structs you use and structs you use to serialize.\ngogoprotobuf also offers more serialization formats and generation of tests and even more methods.\n\nPlease visit the [extensions](https://github.com/cosmos/gogoproto/blob/master/extensions.md) page for more documentation.\n\nInstall protoc-gen-gogo:\n\n    go get github.com/cosmos/gogoproto/proto\n    go get github.com/cosmos/gogoproto/jsonpb\n    go get github.com/cosmos/gogoproto/protoc-gen-gogo\n    go get github.com/cosmos/gogoproto/gogoproto\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmos%2Fgogoproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmos%2Fgogoproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmos%2Fgogoproto/lists"}