Go support for Google's protocol buffers
Go to file
Joe Tsai a89afdc06f testing/protocmp: make Message implement proto.Message
By having the Message type implement proto.Message, it can be passed
to other general-purpose protobuf functions such as proto.Merge.
This provides a convenient way to convert the Message back into a
concrete form that may be easier to work with.

A minor consequence of this change is that invalid messages are
converted to an invalid Message that preserves type information.
Previously, they were simply transformed to a nil Message.

Change-Id: I6fca8a0879408c7f44a99d52734613302fa23f70
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/221422
Reviewed-by: Damien Neil <dneil@google.com>
2020-02-27 23:32:22 +00:00
cmd/protoc-gen-go cmd/protoc-gen-go/testdata: remove go.mod file 2020-02-24 22:15:38 +00:00
compiler/protogen all: trivial formatting changes 2020-02-25 21:59:54 +00:00
encoding all: trivial formatting changes 2020-02-25 21:59:54 +00:00
internal internal/impl: fix non-atomic access of MessageState.mi 2020-02-27 20:50:32 +00:00
proto all: trivial formatting changes 2020-02-25 21:59:54 +00:00
reflect all: rename IsInitialized as CheckInitialized 2020-02-20 20:45:40 +00:00
runtime runtime/protoiface: trivial change to Size 2020-02-25 10:28:07 +00:00
testing testing/protocmp: make Message implement proto.Message 2020-02-27 23:32:22 +00:00
types testing/prototest: refactor prototest API 2020-02-20 22:47:27 +00:00
.gitignore .gitignore: cleanup 2020-02-26 19:42:08 +00:00
.travis.yml .travis.yml: configure for OSX 2019-03-13 18:04:08 +00:00
AUTHORS AUTHORS, CONTRIBUTORS, LICENSE, PATENTS: initial commit 2018-08-07 22:39:48 +00:00
CONTRIBUTING.md all: update contributing documentation 2020-02-24 22:15:07 +00:00
CONTRIBUTORS AUTHORS, CONTRIBUTORS, LICENSE, PATENTS: initial commit 2018-08-07 22:39:48 +00:00
go.mod proto: remove IsInitialized 2020-02-24 22:37:49 +00:00
go.sum proto: remove IsInitialized 2020-02-24 22:37:49 +00:00
integration_test.go all: remove reliance on --compact-summary 2020-02-22 01:19:34 +00:00
LICENSE AUTHORS, CONTRIBUTORS, LICENSE, PATENTS: initial commit 2018-08-07 22:39:48 +00:00
PATENTS AUTHORS, CONTRIBUTORS, LICENSE, PATENTS: initial commit 2018-08-07 22:39:48 +00:00
README.md CONTRIBUTING.md: initial commit 2018-08-01 20:39:06 +00:00
regenerate.bash internal/cmd/generate-protos: generate test for testdata 2019-03-11 19:40:53 +00:00
release.bash release.bash: add support for building release binaries 2019-08-21 01:15:26 +00:00
test.bash test.bash: add -failfast flag 2019-08-05 21:48:09 +00:00

Next Generation Go Protocol Buffers

WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.

This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.

Design Documents

List of relevant design documents:

Contributing

We appreciate community contributions. See CONTRIBUTING.md.

Reporting Issues

Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2: prefix in the title to make it clear that the issue is regarding the new API work.