[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5057":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":9,"pushedAt":9,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},5057,"protobuf","golang\u002Fprotobuf","golang","Go support for Google's protocol buffers",null,"Go",10073,1572,208,115,0,1,9,50.99,"BSD 3-Clause \"New\" or \"Revised\" License",false,"master",[23,7,5,24],"go","protocol-buffers","2026-06-06 04:02:05","# Go support for Protocol Buffers\n\n[![GoDev](https:\u002F\u002Fimg.shields.io\u002Fstatic\u002Fv1?label=godev&message=reference&color=00add8)](https:\u002F\u002Fpkg.go.dev\u002Fmod\u002Fgithub.com\u002Fgolang\u002Fprotobuf)\n[![Build Status](https:\u002F\u002Ftravis-ci.org\u002Fgolang\u002Fprotobuf.svg?branch=master)](https:\u002F\u002Ftravis-ci.org\u002Fgolang\u002Fprotobuf)\n\nThis module\n([`github.com\u002Fgolang\u002Fprotobuf`](https:\u002F\u002Fpkg.go.dev\u002Fmod\u002Fgithub.com\u002Fgolang\u002Fprotobuf))\ncontains Go bindings for protocol buffers.\n\nIt has been superseded by the\n[`google.golang.org\u002Fprotobuf`](https:\u002F\u002Fpkg.go.dev\u002Fmod\u002Fgoogle.golang.org\u002Fprotobuf)\nmodule, which contains an updated and simplified API,\nsupport for protobuf reflection, and many other improvements.\nWe recommend that new code use the `google.golang.org\u002Fprotobuf` module.\n\nVersions v1.4 and later of `github.com\u002Fgolang\u002Fprotobuf` are implemented\nin terms of `google.golang.org\u002Fprotobuf`.\nPrograms which use both modules must use at least version v1.4 of this one.\n\nSee the\n[developer guide for protocol buffers in Go](https:\u002F\u002Fdevelopers.google.com\u002Fprotocol-buffers\u002Fdocs\u002Fgotutorial)\nfor a general guide for how to get started using protobufs in Go.\n\nSee\n[release note documentation](https:\u002F\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Freleases)\nfor more information about individual releases of this project.\n\nSee\n[documentation for the next major revision](https:\u002F\u002Fpkg.go.dev\u002Fmod\u002Fgoogle.golang.org\u002Fprotobuf)\nfor more information about the purpose, usage, and history of this project.\n\n## Package index\n\nSummary of the packages provided by this module:\n\n*   [`proto`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fproto): Package\n    `proto` provides functions operating on protobuf messages such as cloning,\n    merging, and checking equality, as well as binary serialization and text\n    serialization.\n*   [`jsonpb`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fjsonpb): Package\n    `jsonpb` serializes protobuf messages as JSON.\n*   [`ptypes`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fptypes): Package\n    `ptypes` provides helper functionality for protobuf well-known types.\n*   [`ptypes\u002Fany`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fptypes\u002Fany):\n    Package `any` is the generated package for `google\u002Fprotobuf\u002Fany.proto`.\n*   [`ptypes\u002Fempty`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fptypes\u002Fempty):\n    Package `empty` is the generated package for `google\u002Fprotobuf\u002Fempty.proto`.\n*   [`ptypes\u002Ftimestamp`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fptypes\u002Ftimestamp):\n    Package `timestamp` is the generated package for\n    `google\u002Fprotobuf\u002Ftimestamp.proto`.\n*   [`ptypes\u002Fduration`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fptypes\u002Fduration):\n    Package `duration` is the generated package for\n    `google\u002Fprotobuf\u002Fduration.proto`.\n*   [`ptypes\u002Fwrappers`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fptypes\u002Fwrappers):\n    Package `wrappers` is the generated package for\n    `google\u002Fprotobuf\u002Fwrappers.proto`.\n*   [`ptypes\u002Fstruct`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fptypes\u002Fstruct):\n    Package `structpb` is the generated package for\n    `google\u002Fprotobuf\u002Fstruct.proto`.\n*   [`protoc-gen-go\u002Fdescriptor`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fprotoc-gen-go\u002Fdescriptor):\n    Package `descriptor` is the generated package for\n    `google\u002Fprotobuf\u002Fdescriptor.proto`.\n*   [`protoc-gen-go\u002Fplugin`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fprotoc-gen-go\u002Fplugin):\n    Package `plugin` is the generated package for\n    `google\u002Fprotobuf\u002Fcompiler\u002Fplugin.proto`.\n*   [`protoc-gen-go`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fprotoc-gen-go):\n    The `protoc-gen-go` binary is a protoc plugin to generate a Go protocol\n    buffer package.\n\n## Reporting issues\n\nThe issue tracker for this project\n[is located here](https:\u002F\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fissues).\n\nPlease report any issues with a sufficient description of the bug or feature\nrequest. Bug reports should ideally be accompanied by a minimal reproduction of\nthe issue. Irreproducible bugs are difficult to diagnose and fix (and likely to\nbe closed after some period of time). Bug reports must specify the version of\nthe\n[Go protocol buffer module](https:\u002F\u002Fgithub.com\u002Fprotocolbuffers\u002Fprotobuf-go\u002Freleases)\nand also the version of the\n[protocol buffer toolchain](https:\u002F\u002Fgithub.com\u002Fprotocolbuffers\u002Fprotobuf\u002Freleases)\nbeing used.\n\n## Contributing\n\nThis project is open-source and accepts contributions. See the\n[contribution guide](https:\u002F\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md)\nfor more information.\n\n## Compatibility\n\nThis module and the generated code are expected to be stable over time. However,\nwe reserve the right to make breaking changes without notice for the following\nreasons:\n\n*   **Security:** A security issue in the specification or implementation may\n    come to light whose resolution requires breaking compatibility. We reserve\n    the right to address such issues.\n*   **Unspecified behavior:** There are some aspects of the protocol buffer\n    specification that are undefined. Programs that depend on unspecified\n    behavior may break in future releases.\n*   **Specification changes:** It may become necessary to address an\n    inconsistency, incompleteness, or change in the protocol buffer\n    specification, which may affect the behavior of existing programs. We\n    reserve the right to address such changes.\n*   **Bugs:** If a package has a bug that violates correctness, a program\n    depending on the buggy behavior may break if the bug is fixed. We reserve\n    the right to fix such bugs.\n*   **Generated additions**: We reserve the right to add new declarations to\n    generated Go packages of `.proto` files. This includes declared constants,\n    variables, functions, types, fields in structs, and methods on types. This\n    may break attempts at injecting additional code on top of what is generated\n    by `protoc-gen-go`. Such practice is not supported by this project.\n*   **Internal changes**: We reserve the right to add, modify, and remove\n    internal code, which includes all unexported declarations, the\n    [`generator`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Fprotoc-gen-go\u002Fgenerator)\n    package, and all packages under\n    [`internal`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgolang\u002Fprotobuf\u002Finternal).\n\nAny breaking changes outside of these will be announced 6 months in advance to\n[protobuf@googlegroups.com](https:\u002F\u002Fgroups.google.com\u002Fforum\u002F#!forum\u002Fprotobuf).\n","该项目为Google的Protocol Buffers提供了Go语言的支持。其核心功能包括protobuf消息的克隆、合并、相等性检查以及二进制和文本序列化等功能，通过`proto`包实现；同时支持将protobuf消息序列化为JSON格式（`jsonpb`包），并提供对protobuf知名类型如`any`、`empty`、`timestamp`等的帮助功能。尽管官方推荐新项目使用更新版的`google.golang.org\u002Fprotobuf`模块，但本项目仍适用于需要与旧版本兼容或依赖于特定历史API的场景中。",2,"2026-06-06 03:03:11","top_language"]