commit | f8b855d76858bda0a586103d85b0cf65a73c8074 | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Fri Jul 12 13:37:59 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Fri Jul 12 23:12:26 2019 +0000 |
tree | fbb1421786bb5f877c37740a7006d80772382c31 | |
parent | 0f81b38d61ae14f3c3b0590e8e6565fa30b1d068 [diff] |
runtime/protoiface: API adjustments The following adjustments were made: * The pragma.NoUnkeyedLiterals is moved to be the first field. This is done to keep the options struct smaller. Even if the last field is zero-length, Go GC implementation details forces the struct to be padded at the end. * Methods are documented as always treating AllowPartial as true. * Added a support flag for UnmarshalOptions.DiscardUnknown. Change-Id: I1f75d226542ab2bb0123d9cea143c7060df226d8 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/185998 Reviewed-by: Damien Neil <dneil@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.