commit | 613285cf7a5bfa3ca4699028aa6a4654dc1379b6 | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Wed Nov 13 01:51:27 2019 -0800 |
committer | Joe Tsai <joetsai@digital-static.net> | Wed Nov 13 17:53:39 2019 +0000 |
tree | 0f6f24423fac2f057925663ce8737dc7d9b8a9c3 | |
parent | 01c0e8d680bc8917fc8899c1ba7228de04b076fd [diff] |
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 <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.