commit | f2c4ddc7a11e20ffe8f2fd80d560a9a246cde17b | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Thu Sep 19 21:28:52 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Mon Sep 23 16:43:47 2019 +0000 |
tree | 63be7e1435ae43197e38399c70f98e95f1b71170 | |
parent | 641611d98475eb4e8f4bd77ed71823e7f864c768 [diff] |
proto/equal: equate nil Modify Equal to treat nil messages as equal iff both are nil. Of special note, a typed nil pointer to T is equal to a new(T) since they are indistinguishable from a protobuf reflection. Change-Id: Ibf90b43a982e7376e07b4159be198f06230ec194 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/196618 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.