commit | 4866b95a73ee979c9e122b406b3e79f626e79741 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Wed Mar 13 17:36:42 2019 -0700 |
committer | Damien Neil <dneil@google.com> | Thu Mar 14 01:46:22 2019 +0000 |
tree | 49d03e541500dc4ebaec0c6ef019138b431d50fd | |
parent | 990b9f59195ff825e531d023411c1531953aa1c9 [diff] |
internal/impl: try to work with ExtensionDescs when legacy is absent Don't rely on legacyWrapper.ExtensionTypeFromDesc when desc.Type is populated. Avoids panics when working with extensions when internal/legacy has not been imported. Change-Id: Id41ffa3c60b6e5503d0a3e29ef48e4f523fad588 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/167465 Reviewed-by: Joe Tsai <joetsai@google.com>
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.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
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.