protobuf-go/encoding
Joe Tsai 8cfc14f022 all: consistently treat nil message interface as an empty read-only message
To assist users in migrating from github.com/golang/protobuf
to google.golang.org/protobuf, make it such that functiionality like
proto.Marshal doesn't panic on nil interfaces.

Similar to how the new implementation treats a typed nil message
as an empty message, we treat a nil interface as being equivalent
to an "untyped" empty message.

Change-Id: Ic037f386f855b122f732b34d370e524b7c0d76f1
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/228837
Reviewed-by: Damien Neil <dneil@google.com>
2020-04-20 23:12:56 +00:00
..
protojson all: consistently treat nil message interface as an empty read-only message 2020-04-20 23:12:56 +00:00
prototext all: consistently treat nil message interface as an empty read-only message 2020-04-20 23:12:56 +00:00
protowire encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
bench_test.go encoding: remove unused benchV1 flag 2020-02-25 21:50:06 +00:00