commit | d01061a42e000d76237cf12e5e5085f5598aaaa8 | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Sat Oct 05 20:56:32 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Wed Oct 09 22:33:26 2019 +0000 |
tree | 8d6469d69cd8652697b055e0fdd152c0af6931f4 | |
parent | c1507ac6781d3f58cd2081d1e5166750e1b30319 [diff] |
internal/impl: print <nil> for typed nil messages The Message.String method is intended for debugging, so outputting <nil> for typed nil messages actually has use. This matches the current behavior of Message.String for messages generated by the v1 protoc-gen-go. Change-Id: I6e31183961c83d7bce6338eb99aa7758cfda1ff4 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/199397 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.