|author||Joe Tsai <email@example.com>||Wed Nov 13 01:51:27 2019 -0800|
|committer||Joe Tsai <firstname.lastname@example.org>||Wed Nov 13 17:53:39 2019 +0000|
internal/impl: refactor makeStructInfo Simplify the implementation of makeStructInfo by checking the names of the internal fields in a switch statement. Also, add "weakFields" as the unexported name for weak fields in preparation for actually unexporting it. Change-Id: Ide970a39e9caa5a24bc288ba3e3a0d223a6bfcb6 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/207057 Reviewed-by: Damien Neil <email@example.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.