Update dependencies

This commit is contained in:
Ken-Håvard Lieng 2020-05-08 02:10:22 +02:00
parent 0d085a2b4d
commit 2a72b198e3
84 changed files with 1461 additions and 980 deletions

View file

@ -18,6 +18,11 @@ func Size(m Message) int {
// Size returns the size in bytes of the wire-format encoding of m.
func (o MarshalOptions) Size(m Message) int {
// Treat a nil message interface as an empty message; nothing to output.
if m == nil {
return 0
}
return sizeMessage(m.ProtoReflect())
}