protobuf-go/reflect
Joe Tsai 6c26a04a51 internal/filedesc: use jsonName.Init method over JSONName constructor
The JSONName constructor returns a struct value which shallow copies
a sync.Once within it; this is a dubious pattern.
Instead, add a jsonName.Init method to initialize the value.

Change-Id: I190a7239b1b62a8041ee7e4e09c0fe37b64ff623
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/213237
Reviewed-by: Damien Neil <dneil@google.com>
2020-01-06 18:42:14 +00:00
..
protodesc internal/filedesc: use jsonName.Init method over JSONName constructor 2020-01-06 18:42:14 +00:00
protoreflect reflect/protoreflect: add {Message,List,Map}.IsValid 2019-11-26 22:56:18 +00:00
protoregistry reflect/protoregistry: remove deprecated APIs 2019-11-08 01:03:52 +00:00