protobuf-go/proto
Joe Tsai 33f8c03eac proto: add RangeExtensions and adjust HasExtension and GetExtension
Two changes:
* Add RangeExtensions as a more suitable replacement for legacy
proto.ClearExtensions and proto.ExtensionDescs functions.
* Make HasExtension and GetExtension treat nil message interface
as an empty message to more consistently match legacy behavior.

Change-Id: I8eb1887a33d0737f2f80a2b80358cc296087ba3b
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/229157
Reviewed-by: Damien Neil <dneil@google.com>
2020-04-21 00:46:21 +00:00
..
bench_test.go
checkinit_test.go all: rename IsInitialized as CheckInitialized 2020-02-20 20:45:40 +00:00
checkinit.go all: consistently treat nil message interface as an empty read-only message 2020-04-20 23:12:56 +00:00
decode_gen.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
decode_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
decode.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
doc.go all: rename IsInitialized as CheckInitialized 2020-02-20 20:45:40 +00:00
encode_gen.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
encode_test.go proto: never return nil []byte from Marshal when successful 2020-04-20 23:39:16 +00:00
encode.go proto: never return nil []byte from Marshal when successful 2020-04-20 23:39:16 +00:00
equal_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
equal.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
extension_test.go proto: add RangeExtensions and adjust HasExtension and GetExtension 2020-04-21 00:46:21 +00:00
extension.go proto: add RangeExtensions and adjust HasExtension and GetExtension 2020-04-21 00:46:21 +00:00
merge_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
merge.go all: consistently treat nil message interface as an empty read-only message 2020-04-20 23:12:56 +00:00
messageset_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
messageset.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
methods_test.go proto: fix signature of UnmarshalState and MarshalState 2020-03-09 20:02:17 +00:00
nil_test.go proto: add RangeExtensions and adjust HasExtension and GetExtension 2020-04-21 00:46:21 +00:00
noenforceutf8_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
proto_methods.go
proto_reflect.go
proto.go proto: document the relationship between v1 and v2 messages 2020-02-14 20:42:20 +00:00
reset_test.go all: remove stray "." from license headers 2020-02-20 18:54:38 +00:00
reset.go proto: add TestNil test 2020-02-25 20:33:07 +00:00
size_gen.go encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
size.go all: consistently treat nil message interface as an empty read-only message 2020-04-20 23:12:56 +00:00
testmessages_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
validate_test.go all: remove stray "." from license headers 2020-02-20 18:54:38 +00:00
weak_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
wrappers.go