commit | 77f82fe6bc94bb051d1164a8b7b50c6e03ef94a9 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Thu Sep 13 10:59:17 2018 -0700 |
committer | Damien Neil <dneil@google.com> | Thu Sep 13 20:51:57 2018 +0000 |
tree | 2bc53c350ce5ac900c815cee1d9d36f75cbec68b | |
parent | fa02f4eaa651c7056da40621450df82f1a6dfa57 [diff] |
cmd/protoc-gen-go: generate getters Refactor fieldGoType to return the non-pointer type for scalar types (i.e., "int", not "*int"), and a bool indicating whether the struct field is a pointer to that type. Change-Id: Ic80220e92f0b190e41ead847440d57af5c6cc919 Reviewed-on: https://go-review.googlesource.com/135336 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.