commit | 3eaddf03448236d87fb2ebcd0ec8498d0b3b3254 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Thu May 09 11:33:55 2019 -0700 |
committer | Damien Neil <dneil@google.com> | Thu May 09 19:16:10 2019 +0000 |
tree | efc5db62d60f17a680c4fe31401548e53fa45c31 | |
parent | 00a323deed553a498b32dd12d2e446c46cc36b48 [diff] |
internal/impl: pull out message struct info into a type Minor refactoring of impl.MessageType initialization: Pull the information gathered about a message struct by makeKnownFieldsFunc out into a struct that we can pass around. At the moment, makeKnownFieldsFunc is the only user of this struct, but this will simplify the table (un)marshaler. Drop the 'specialByName' map indexing XXX_ fields because it currently isn't used anywhere. Change-Id: I992c9f490982a05f3919d7d4e08052e2ab54d44d Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/176220 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.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.