commit | bb1d557b23b6636638bf0b5919b3bf6c7bb0651b | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Wed Oct 31 13:28:29 2018 -0700 |
committer | Damien Neil <dneil@google.com> | Wed Oct 31 20:40:31 2018 +0000 |
tree | 6cd7bb0e6a76c2265dd28fbbb8a36c10d72f8dc0 | |
parent | 2d5a169f75bae6f3a95a970044650a2c39873171 [diff] |
cmd/protoc-gen-go: factor out oneof field naming A oneof is represented by a single struct field of interface type. Pull out the decision of what to name that field into a separate function. The function is trivial (return oneof.GoName), but factoring out the field name like this makes it a bit easier to experiment with changes to the oneof implementation in the future. Change-Id: I1114b68c85cb6608852fa1c6bf4103ff58fd5de6 Reviewed-on: https://go-review.googlesource.com/c/146397 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.