protobuf-go/internal
Joe Tsai 1c40f4957d reflect/prototype: simplify Go type descriptor constructors
The Go type descriptors protoreflect.{Enum,Message,Extension}Type are simple
wrappers over protoreflect.{Enum,Message,Extension}Descriptor with a small
number of additional methods. It is very unlikely that more will be added in
the near future.

For this reason, construct the types directly using arguments to the constructor
function, as opposed to taking in another struct (which was originally done
to provide flexibility in-case we needed more fields).

Furthmore, rename GoNew and New.

Change-Id: Ic7fb5bc250cdb2761ae03b388b5147ff50f37d15
Reviewed-on: https://go-review.googlesource.com/c/148822
Reviewed-by: Herbie Ong <herbie@google.com>
2018-11-10 21:41:49 +00:00
..
cmd reflect/protoreflect: add Descriptor.Options method 2018-10-23 23:44:11 +00:00
encoding internal/encoding/tag: centralize logic for protobuf struct tag serialization 2018-11-05 20:12:56 +00:00
errors internal/errors: initial commit 2018-08-02 18:28:47 +00:00
flags internal/flags: add package to control specialized functionality 2018-08-03 22:59:53 +00:00
impl reflect/prototype: simplify Go type descriptor constructors 2018-11-10 21:41:49 +00:00
pragma internal/pragma: package to statically enforce certain properties 2018-08-06 21:47:01 +00:00
protogen/goldentest protogen: generate .meta file with code annotations 2018-10-16 17:22:41 +00:00
set internal/set: add set package for set data structures 2018-08-09 21:46:35 +00:00
value reflect/prototype: simplify Go type descriptor constructors 2018-11-10 21:41:49 +00:00