commit | a2684f4b8a247c428e7d4636199a7349be565192 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Mon Nov 04 15:30:28 2019 -0800 |
committer | Damien Neil <dneil@google.com> | Wed Nov 06 18:17:25 2019 +0000 |
tree | 0aa8b2932d623a3be63ccef1393f1bd33cad6994 | |
parent | a0a54b800581be257b89521074f86b40a3496564 [diff] |
internal/impl: make resolverOnly explicitly implement file resolver The resolverOnly type embeds a *protoregistry.Files and overrides one of of its methods. When that method was renamed (Register -> RegisterFile), the resolverOnly type continued to compile but no longer overrode the desired method. Update the method name, and change this type to explicitly forward methods to the underlying *protoregistry.Files to catch errors of this nature in the future. Change-Id: I09a529034b6e2f310977bc635288fa15ce14cc7e Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/205242 Reviewed-by: Joe Tsai <joetsai@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.