commit | d47ea19d2fa7c1255b49a6365876797d79ad8a5b | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Tue Jul 09 22:38:15 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Mon Jul 15 19:09:08 2019 +0000 |
tree | df5f32e514598b59e93011bd3c8b9b457154dae5 | |
parent | 3d8e369c4e5f4651fdf4ae9e80a8d44e88abb2b8 [diff] |
encoding: support weak fields in text and JSON unmarshaling If the message for a weak field is linked in, we treat it as if it were identical to a normal known field. However, if the weak field is not linked in, we treat it as if the field were not known. Change-Id: I576d911deec98e13211304024a6353734d055465 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/185457 Reviewed-by: Herbie Ong <herbie@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.