protobuf-go/encoding/prototext
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
..
decode_test.go encoding/prototext: rewrite of internal/encoding/text 2020-02-05 02:11:08 +00:00
decode.go all: rename IsInitialized as CheckInitialized 2020-02-20 20:45:40 +00:00
doc.go
encode_test.go testing/protopack: make package publicly available 2020-03-20 18:05:51 +00:00
encode.go all: consistently treat nil message interface as an empty read-only message 2020-04-20 23:12:56 +00:00
other_test.go internal/testprotos: hide all public testprotos 2020-01-12 08:32:55 +00:00