commit | 531a03af35424dc5dcbaefcb24a777eb39df0eef | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Fri Sep 06 00:30:59 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Mon Sep 09 18:40:39 2019 +0000 |
tree | cd8765a4465ad8f29127561636a76b62f597dae4 | |
parent | 27af11f1443ae14a409bae76e57eda9ed6ba6733 [diff] |
internal/impl: preserve nil in ProtoMessageVXOf ProtoMessageV1(nil) now returns nil. ProtoMessageV2(nil) now returns nil. Note that the following continue to panic: MessageOf(nil) MessageDescriptorOf(nil) MessageTypeOf(nil) It may be reasonable for them to also return nil in the future. Change-Id: Icc14857252d844eb6d4dbfe0c248cef22023e930 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/193758 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.